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; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Process viewer GUI in rust";
|
2022-09-26 20:09:59 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|