2020-11-24 20:58:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rofi, systemd, coreutils, util-linux, gawk, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-systemd";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IvanMalison";
|
|
|
|
repo = "rofi-systemd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1dbygq3qaj1f73hh3njdnmibq7vi6zbyzdc6c0j989c0r1ksv0zi";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a rofi-systemd $out/bin/rofi-systemd
|
|
|
|
'';
|
|
|
|
|
|
|
|
wrapperPath = with stdenv.lib; makeBinPath [
|
|
|
|
rofi
|
|
|
|
coreutils
|
2020-11-24 20:58:05 +00:00
|
|
|
util-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
gawk
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
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 stdenv.lib.maintainers; [ imalison ];
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|