nixpkgs/pkgs/applications/misc/process-viewer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-26 20:09:59 +00:00
{ lib
, rustPlatform
, fetchCrate
, pkg-config
, gtk4
, stdenv
2023-01-13 22:32:47 +00:00
, darwin
2022-09-26 20:09:59 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "process-viewer";
2023-03-08 19:07:49 +00:00
version = "0.5.8";
2022-09-26 20:09:59 +00:00
src = fetchCrate {
inherit pname version;
2023-03-08 19:07:49 +00:00
sha256 = "sha256-mEmtLCtHlrCurjKKJ3vEtEkLBik4LwuUED5UeQ1QLws=";
2022-09-26 20:09:59 +00:00
};
2023-03-08 19:07:49 +00:00
cargoSha256 = "sha256-lgVByl+mpCDbhwlC1Eiw9ZkHIDYJsOR06Ds790pXOMc=";
2022-09-26 20:09:59 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk4 ] ++ lib.optionals stdenv.isDarwin [
2023-01-13 22:32:47 +00:00
darwin.apple_sdk_11_0.frameworks.Foundation
2022-09-26 20:09:59 +00:00
];
postInstall = ''
install -Dm644 assets/fr.guillaume_gomez.ProcessViewer.desktop -t $out/share/applications
install -Dm644 assets/fr.guillaume_gomez.ProcessViewer.svg -t $out/share/icons/hicolor/scalable/apps
install -Dm644 assets/fr.guillaume_gomez.ProcessViewer.metainfo.xml -t $out/share/metainfo
'';
meta = with lib; {
description = "A process viewer GUI in rust";
homepage = "https://github.com/guillaumegomez/process-viewer";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
2022-10-09 17:26:02 +00:00
mainProgram = "process_viewer";
2022-09-26 20:09:59 +00:00
};
}