depot/third_party/nixpkgs/pkgs/tools/system/zps/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

37 lines
869 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "zps";
version = "1.2.9";
src = fetchFromGitHub {
owner = "orhun";
repo = "zps";
rev = version;
hash = "sha256-+evCYiTiH8tRmhvsse+49WlKGRP5XQtep7wGoCySvJ4=";
};
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 = "A 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";
};
}