2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, gtk4
|
|
|
|
, stdenv
|
2023-01-20 10:41:00 +00:00
|
|
|
, darwin
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "process-viewer";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.5.8";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-mEmtLCtHlrCurjKKJ3vEtEkLBik4LwuUED5UeQ1QLws=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-lgVByl+mpCDbhwlC1Eiw9ZkHIDYJsOR06Ds790pXOMc=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [ gtk4 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-01-20 10:41:00 +00:00
|
|
|
darwin.apple_sdk_11_0.frameworks.Foundation
|
2022-09-30 11:47:45 +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-20 14:57:18 +00:00
|
|
|
description = "Process viewer GUI in rust";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/guillaumegomez/process-viewer";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2022-10-21 18:38:19 +00:00
|
|
|
mainProgram = "process_viewer";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
}
|