nixpkgs/pkgs/applications/misc/process-viewer/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

41 lines
1.1 KiB
Nix

{ lib
, rustPlatform
, fetchCrate
, pkg-config
, gtk4
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "process-viewer";
version = "0.5.8";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-mEmtLCtHlrCurjKKJ3vEtEkLBik4LwuUED5UeQ1QLws=";
};
cargoSha256 = "sha256-lgVByl+mpCDbhwlC1Eiw9ZkHIDYJsOR06Ds790pXOMc=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk4 ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.Foundation
];
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 ];
mainProgram = "process_viewer";
};
}