summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorIvan Malison <IvanMalison@gmail.com>2018-07-14 19:06:48 -0700
committerIvan Malison <IvanMalison@gmail.com>2018-07-14 19:06:48 -0700
commit4b8bb6a65aee0caf563833096925e6f6daedc9c1 (patch)
tree7e423b573b396064ad8f186e7781935277b81f08 /pkgs/tools
parentc4fca6498083590d13d0b008b86e2f8285f2d0ff (diff)
downloadnixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.tar
nixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.tar.gz
nixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.tar.bz2
nixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.tar.lz
nixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.tar.xz
nixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.tar.zst
nixpkgs-4b8bb6a65aee0caf563833096925e6f6daedc9c1.zip
rofi-systemd: init at 0.1.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/system/rofi-systemd/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/system/rofi-systemd/default.nix b/pkgs/tools/system/rofi-systemd/default.nix
new file mode 100644
index 00000000000..ee7626d2712
--- /dev/null
+++ b/pkgs/tools/system/rofi-systemd/default.nix
@@ -0,0 +1,45 @@
+{ stdenv, fetchFromGitHub, rofi, systemd, coreutils, utillinux, gawk, makeWrapper
+}:
+
+stdenv.mkDerivation rec {
+  name = "rofi-systemd-${version}";
+  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";
+    homepage = https://github.com/IvanMalison/rofi-systemd;
+    maintainers = with stdenv.lib.maintainers; [ imalison ];
+    license = stdenv.lib.licenses.gpl3;
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}