gnome-resources: init at 1.2.1

This commit is contained in:
ewuuwe 2023-12-08 22:24:45 +01:00
parent 366b54b810
commit 87fb1c480d
2 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,77 @@
{ pkgs
, fetchFromGitHub
, stdenv
, lib
, appstream-glib
, cargo
, desktop-file-utils
, meson
, pkg-config
, rustPlatform
, rustc
, glib
, wrapGAppsHook4
, systemd
, polkit
, dmidecode
, gtk4
, libadwaita
, ninja
}:
stdenv.mkDerivation rec {
pname = "gnome-resources";
version = "1.2.0";
src = fetchFromGitHub {
owner = "nokyan";
repo = "resources";
rev = "v${version}";
hash = "sha256-faZ6MDOu/y4+DX9ObjPyVkxKwmLffMJZ93Adf/t8nxQ=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = "${src}/Cargo.lock";
outputHashes = {
"plotters-cairo-0.4.0" = "sha256-m7ZT5F7WxjZSGQwuytqdMWUgYvcK2UCU/ntJGIJE+UA=";
};
};
nativeBuildInputs = [
pkg-config
desktop-file-utils
appstream-glib
meson
ninja
rustc
cargo
rustPlatform.cargoSetupHook
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
libadwaita
polkit
systemd
];
wrapperPath = lib.makeBinPath ([
dmidecode
]);
postFixup = ''
# Ensure all dependencies are in PATH
wrapProgram $out/bin/resources \
--prefix PATH : "${wrapperPath}"
'';
meta = with lib; {
homepage = "https://github.com/nokyan/resources";
description = "Monitor your system resources and processes";
license = licenses.gpl3;
mainProgram = "resources";
maintainers = with maintainers; [ ewuuwe ];
platforms = platforms.linux;
};
}

View file

@ -8665,6 +8665,8 @@ with pkgs;
gnome-randr = callPackage ../tools/wayland/gnome-randr { };
gnome-resources = callPackage ../tools/system/gnome-resources { };
gnuapl = callPackage ../development/interpreters/gnu-apl { };
gnu-shepherd = callPackage ../misc/gnu-shepherd { };