My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/misc/sysz/default.nix

33 lines
910 B

{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, fzf, gawk }:
stdenvNoCC.mkDerivation rec {
pname = "sysz";
version = "1.4.3";
src = fetchFromGitHub {
owner = "joehillen";
repo = pname;
rev = version;
sha256 = "sha256-X9vj6ILPUKFo/i50JNehM2GSDWfxTdroWGYJv765Cm4=";
};
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";
};
}