Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.0 KiB
Nix
58 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rofi,
|
|
systemd,
|
|
coreutils,
|
|
util-linux,
|
|
gawk,
|
|
makeWrapper,
|
|
jq,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rofi-systemd";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "IvanMalison";
|
|
repo = "rofi-systemd";
|
|
rev = "v${version}";
|
|
sha256 = "0lgffb6rk1kf91j4j303lzpx8w2g9zy2gk99p8g8pk62a30c5asm";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -a rofi-systemd $out/bin/rofi-systemd
|
|
'';
|
|
|
|
wrapperPath = lib.makeBinPath [
|
|
coreutils
|
|
gawk
|
|
jq
|
|
rofi
|
|
systemd
|
|
util-linux
|
|
];
|
|
|
|
fixupPhase = ''
|
|
patchShebangs $out/bin
|
|
|
|
wrapProgram $out/bin/rofi-systemd --prefix PATH : "${wrapperPath}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Control your systemd units using rofi";
|
|
homepage = "https://github.com/IvanMalison/rofi-systemd";
|
|
maintainers = with lib.maintainers; [ imalison ];
|
|
license = lib.licenses.gpl3;
|
|
platforms = with lib.platforms; linux;
|
|
mainProgram = "rofi-systemd";
|
|
};
|
|
}
|