21 stdenv.mkDerivation (finalAttrs: {
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${finalAttrs.version}";
29 hash = "sha256-uzZCczayJ5C0TZznA2wjGNYF3nB6fh/rrBKvv9s3J5g=";
32 cargoDeps = rustPlatform.fetchCargoTarball {
33 inherit (finalAttrs) src;
34 name = "resources-${finalAttrs.version}";
35 hash = "sha256-a0VdSNy8E7qen+6yFXuQBmYnDD/DMUgrZqJK6BJja60=";
45 rustPlatform.cargoSetupHook
57 substituteInPlace src/utils/memory.rs \
58 --replace '"dmidecode"' '"${dmidecode}/bin/dmidecode"'
59 substituteInPlace src/utils/cpu.rs \
60 --replace '"lscpu"' '"${util-linux}/bin/lscpu"'
61 substituteInPlace src/utils/memory.rs \
62 --replace '"pkexec"' '"/run/wrappers/bin/pkexec"'
66 (lib.mesonOption "profile" "default")
70 updateScript = nix-update-script { };
74 changelog = "https://github.com/nokyan/resources/releases/tag/${finalAttrs.version}";
75 description = "Monitor your system resources and processes";
76 homepage = "https://github.com/nokyan/resources";
77 license = lib.licenses.gpl3Only;
78 mainProgram = "resources";
79 maintainers = with lib.maintainers; [ lukas-heiligenbrunner ewuuwe ];
80 platforms = lib.platforms.linux;