add resources

This commit is contained in:
2023-11-26 22:32:14 +01:00
parent 951a4c32e8
commit 24676bfeea
6 changed files with 124 additions and 29 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, allPkgs, ... }:
{ config, lib, pkgs, custompkgs, modulesPath, allPkgs, ... }:
{
imports =
@ -23,6 +23,9 @@
# disable xterm
services.xserver.excludePackages = [ pkgs.xterm ];
# disable documentation install
documentation.nixos.enable = false;
# cli util to upate hardware
services.fwupd.enable = true;
programs.steam.enable = true;
@ -44,9 +47,10 @@
neofetch
dmidecode
#(pkgs.callPackage ./resources.nix { })
# web
firefox
# development
openscad
vscode
@ -57,13 +61,12 @@
iperf3
discord
#cargo
#rustc
rustup
## jetbrains ides
## ides
jetbrains.idea-ultimate
jetbrains.dataspell
kicad
gnome-builder
## R statistics stuff
rstudio
@ -81,5 +84,8 @@
pdfarranger
diebahn
appflowy
];
kicad
] ++ ([
custompkgs.resources
]);
}

View File

@ -0,0 +1,64 @@
{ lib
, stdenv
, fetchFromGitHub
, appstream-glib
, cargo
, desktop-file-utils
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
, wrapGAppsHook4
, glib
, gtk4
, libadwaita
}:
stdenv.mkDerivation rec {
pname = "resources";
version = "1.2.1";
src = fetchFromGitHub {
owner = "nokyan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-OVz1vsmOtH/5sEuyl2BfDqG2/9D1HGtHA0FtPntKQT0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-v${version}";
hash = "sha256-JxcqHM7jccZ+YwU93AejXejZK1bj7IggO1QrE5cSPYU=";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
wrapGAppsHook4
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = [
glib
gtk4
libadwaita
];
mesonFlags = [
"-Dprofile=default"
];
meta = {
description = "Resources";
homepage = "https://github.com/nokyan/resources";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dotlambda foo-dogsquared ];
platforms = lib.platforms.all;
};
}