2021-09-19 08:31:26 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, fzf, gawk }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "sysz";
|
2021-10-25 05:57:32 +00:00
|
|
|
version = "1.4.3";
|
2021-09-19 08:31:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joehillen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-25 05:57:32 +00:00
|
|
|
sha256 = "sha256-X9vj6ILPUKFo/i50JNehM2GSDWfxTdroWGYJv765Cm4=";
|
2021-09-19 08:31:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "sysz";
|
2021-09-19 08:31:26 +00:00
|
|
|
};
|
|
|
|
}
|