2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rofi, systemd, coreutils, util-linux, gawk, makeWrapper, jq
|
2018-07-15 04:06:48 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rofi-systemd";
|
2020-12-04 03:24:40 +01:00
|
|
|
version = "0.1.1";
|
2018-07-15 04:06:48 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IvanMalison";
|
|
|
|
repo = "rofi-systemd";
|
|
|
|
rev = "v${version}";
|
2020-12-04 03:24:40 +01:00
|
|
|
sha256 = "0lgffb6rk1kf91j4j303lzpx8w2g9zy2gk99p8g8pk62a30c5asm";
|
2018-07-15 04:06:48 +02:00
|
|
|
};
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-07-15 04:06:48 +02:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a rofi-systemd $out/bin/rofi-systemd
|
|
|
|
'';
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
wrapperPath = with lib; makeBinPath [
|
2018-07-15 04:06:48 +02:00
|
|
|
coreutils
|
|
|
|
gawk
|
2020-12-04 03:24:40 +01:00
|
|
|
jq
|
|
|
|
rofi
|
2018-07-15 04:06:48 +02:00
|
|
|
systemd
|
2020-12-04 03:24:40 +01:00
|
|
|
util-linux
|
2018-07-15 04:06:48 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
patchShebangs $out/bin
|
|
|
|
|
|
|
|
wrapProgram $out/bin/rofi-systemd --prefix PATH : "${wrapperPath}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Control your systemd units using rofi";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/IvanMalison/rofi-systemd";
|
2021-01-15 10:19:50 +01:00
|
|
|
maintainers = with lib.maintainers; [ imalison ];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = with lib.platforms; linux;
|
2018-07-15 04:06:48 +02:00
|
|
|
};
|
|
|
|
}
|