summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/compat/18.03/pass/rofi-pass.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-10-07 11:41:44 +0200
committerlassulus <lass@blue.r>2018-10-07 11:41:44 +0200
commitee07881154f247d792e9121f3eb1c1b1275cd938 (patch)
treef048764fe696907d23c680cff44b695fccb27fb8 /tv/5pkgs/compat/18.03/pass/rofi-pass.nix
parentea82a695cf7895bd607cec4b5b80f3f90e736ce1 (diff)
parent5641a6ad03baccf299be6574193a37dd16e17137 (diff)
Merge remote-tracking branch 'ni/master' into 18.09
Diffstat (limited to 'tv/5pkgs/compat/18.03/pass/rofi-pass.nix')
-rw-r--r--tv/5pkgs/compat/18.03/pass/rofi-pass.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/tv/5pkgs/compat/18.03/pass/rofi-pass.nix b/tv/5pkgs/compat/18.03/pass/rofi-pass.nix
new file mode 100644
index 000000000..61f51973e
--- /dev/null
+++ b/tv/5pkgs/compat/18.03/pass/rofi-pass.nix
@@ -0,0 +1,57 @@
+{ stdenv, fetchFromGitHub, pass, rofi, coreutils, utillinux, xdotool, gnugrep
+, libnotify, pwgen, findutils, gawk, gnused, xclip, makeWrapper
+}:
+
+stdenv.mkDerivation rec {
+ name = "rofi-pass-${version}";
+ version = "1.5.3";
+
+ src = fetchFromGitHub {
+ owner = "carnager";
+ repo = "rofi-pass";
+ rev = version;
+ sha256 = "1fn1j2rf3abc5qb44zfc8z8ffw6rva4xfp7597hwr1g3szacazpq";
+ };
+
+ buildInputs = [ makeWrapper ];
+
+ dontBuild = true;
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp -a rofi-pass $out/bin/rofi-pass
+
+ mkdir -p $out/share/doc/rofi-pass/
+ cp -a config.example $out/share/doc/rofi-pass/config.example
+ '';
+
+ wrapperPath = with stdenv.lib; makeBinPath [
+ coreutils
+ findutils
+ gawk
+ gnugrep
+ gnused
+ libnotify
+ pass
+ pwgen
+ rofi
+ utillinux
+ xclip
+ xdotool
+ ];
+
+ fixupPhase = ''
+ patchShebangs $out/bin
+
+ wrapProgram $out/bin/rofi-pass \
+ --prefix PATH : "${wrapperPath}"
+ '';
+
+ meta = {
+ description = "A script to make rofi work with password-store";
+ homepage = https://github.com/carnager/rofi-pass;
+ maintainers = with stdenv.lib.maintainers; [ the-kenny garbas ];
+ license = stdenv.lib.licenses.gpl3;
+ platforms = with stdenv.lib.platforms; linux;
+ };
+}