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;
|
2024-07-12 18:42:22 +00:00
|
|
|
hash = "sha256-mEmtLCtHlrCurjKKJ3vEtEkLBik4LwuUED5UeQ1QLws=";
|
2022-09-26 20:09:59 +00:00
|
|
|
};
|
|
|
|
|
2024-07-02 09:04:59 +00:00
|
|
|
cargoHash = "sha256-lgVByl+mpCDbhwlC1Eiw9ZkHIDYJsOR06Ds790pXOMc=";
|
2022-09-26 20:09:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ gtk4 ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.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 = "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
|
|
|
};
|
|
|
|
}
|