mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
934 B
Nix
34 lines
934 B
Nix
{ 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 = "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";
|
|
mainProgram = "sysz";
|
|
};
|
|
}
|