diff options
author | Moritz Ulrich <moritz@tarn-vedra.de> | 2015-12-04 17:22:07 +0100 |
---|---|---|
committer | Moritz Ulrich <moritz@tarn-vedra.de> | 2015-12-04 17:24:56 +0100 |
commit | e9e6d62c59573e250c518e59a097cdf35a471ff8 (patch) | |
tree | 6d229d0c7012391bd5311c1a093c029d25480e10 /pkgs/tools/security/pass | |
parent | 97ad62834415fb35f260f40a98ef1623d76ca069 (diff) | |
download | nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.tar nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.tar.gz nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.tar.bz2 nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.tar.lz nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.tar.xz nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.tar.zst nixlib-e9e6d62c59573e250c518e59a097cdf35a471ff8.zip |
rofi-pass: 1.2 -> 1.3.1
Also contains fixes so it doesn't depend on anything in PATH.
Diffstat (limited to 'pkgs/tools/security/pass')
-rw-r--r-- | pkgs/tools/security/pass/rofi-pass.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/security/pass/rofi-pass.nix b/pkgs/tools/security/pass/rofi-pass.nix new file mode 100644 index 000000000000..98ef14cb578c --- /dev/null +++ b/pkgs/tools/security/pass/rofi-pass.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchgit +, pass, rofi, coreutils, utillinux, xdotool, gnugrep +, makeWrapper }: + +stdenv.mkDerivation rec { + name = "rofi-pass-${version}"; + version = "1.3.1"; + + src = fetchgit { + url = "https://github.com/carnager/rofi-pass"; + rev = "refs/tags/${version}"; + sha256 = "1r206fq96avhlgkf2fzf8j2a25dav0s945qv66hwvqwhxq74frrv"; + }; + + buildInputs = [ makeWrapper ]; + + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin + cp -a $src/rofi-pass $out/bin/rofi-pass + + mkdir -p $out/share/doc/rofi-pass/ + cp -a $src/config.example $out/share/doc/rofi-pass/config.example + ''; + + wrapperPath = with stdenv.lib; makeSearchPath "bin/" [ + coreutils + utillinux + rofi + pass + xdotool + gnugrep + ]; + + 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; [ hiberno the-kenny ]; + license = stdenv.lib.licenses.gpl3; + }; +} |