nixpkgs/pkgs/tools/system/zps/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

38 lines
867 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "zps";
version = "2.0.0";
src = fetchFromGitHub {
owner = "orhun";
repo = "zps";
rev = version;
hash = "sha256-t+y+m9cwngVlX5o7FQTI4FMj10bN0euH51DmAnOAvPc=";
};
nativeBuildInputs = [
cmake
];
postInstall = ''
mkdir -p $out/share/applications
substitute ../.application/zps.desktop $out/share/applications/zps.desktop \
--replace Exec=zps Exec=$out/zps \
'';
meta = with lib; {
description = "Small utility for listing and reaping zombie processes on GNU/Linux";
homepage = "https://github.com/orhun/zps";
changelog = "https://github.com/orhun/zps/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ figsoda ];
platforms = platforms.linux;
mainProgram = "zps";
};
}