diff options
author | Harold Leboulanger <hleboulanger@protonmail.com> | 2021-09-19 10:31:26 +0200 |
---|---|---|
committer | Harold LEBOULANGER <harold.leboulanger@orange.com> | 2021-09-21 11:09:15 +0200 |
commit | 35b3dce8f59326ea42dce77537b2a81d6cb9fa57 (patch) | |
tree | 0fbcfa5facdee23b5d6db71e277fc8962b0eb261 /pkgs/tools/misc/sysz | |
parent | ea71d92e4e1055cd29536e9c1747712cd3fe4162 (diff) |
sysz: init at 1.3.0
Diffstat (limited to 'pkgs/tools/misc/sysz')
-rw-r--r-- | pkgs/tools/misc/sysz/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/sysz/default.nix b/pkgs/tools/misc/sysz/default.nix new file mode 100644 index 0000000000000..4f5f90d04b0e1 --- /dev/null +++ b/pkgs/tools/misc/sysz/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, fzf, gawk }: + +stdenvNoCC.mkDerivation rec { + pname = "sysz"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "joehillen"; + repo = pname; + rev = version; + sha256 = "HNwsYE1Cv90IDi3A5PmRv3uHANR3ya+VOGBQ3+zkBLM="; + }; + + nativeBuildInputs = [ makeWrapper ]; + dontBuild = true; + + installPhase = '' + runHook preInstall + install -Dm755 sysz $out/libexec/sysz + makeWrapper $out/libexec/sysz $out/bin/sysz \ + --prefix PATH : ${lib.makeBinPath [ fzf gawk ]} + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/joehillen/sysz"; + description = "A fzf terminal UI for systemctl"; + license = licenses.unlicense; + maintainers = with maintainers; [ hleboulanger ]; + platforms = platforms.unix; + changelog = "https://github.com/joehillen/sysz/blob/${version}/CHANGELOG.md"; + }; +} |