2018-07-15 03:06:48 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rofi, systemd, coreutils, utillinux, gawk, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "rofi-systemd";
|
2018-07-15 03:06:48 +01:00
|
|
|
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
|
|
|
|
utillinux
|
|
|
|
gawk
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
patchShebangs $out/bin
|
|
|
|
|
|
|
|
wrapProgram $out/bin/rofi-systemd --prefix PATH : "${wrapperPath}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Control your systemd units using rofi";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/IvanMalison/rofi-systemd";
|
2018-07-15 03:06:48 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ imalison ];
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|