1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5}:
6
7stdenv.mkDerivation rec {
8 pname = "zps";
9 version = "1.2.8";
10
11 src = fetchFromGitHub {
12 owner = "orhun";
13 repo = "zps";
14 rev = version;
15 hash = "sha256-t0kVMrJn+eqUUD98pp3iIK28MoLwOplLk0sYgRJkO4c=";
16 };
17
18 nativeBuildInputs = [
19 cmake
20 ];
21
22 postInstall = ''
23 mkdir -p $out/share/applications
24 substitute ../.application/zps.desktop $out/share/applications/zps.desktop \
25 --replace Exec=zps Exec=$out/zps \
26 '';
27
28 meta = with lib; {
29 description = "A small utility for listing and reaping zombie processes on GNU/Linux";
30 homepage = "https://github.com/orhun/zps";
31 changelog = "https://github.com/orhun/zps/releases/tag/${version}";
32 license = licenses.gpl3Only;
33 maintainers = with maintainers; [ figsoda ];
34 platforms = platforms.linux;
35 };
36}