2016-09-21 17:12:43 +03:00
|
|
|
{ stdenv, fetchFromGitHub, pass, rofi, coreutils, utillinux, xdotool, gnugrep
|
|
|
|
, libnotify, pwgen, findutils, gawk, gnused, xclip, makeWrapper
|
|
|
|
}:
|
2015-12-04 19:22:07 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rofi-pass-${version}";
|
2017-11-04 11:31:18 +03:00
|
|
|
version = "1.5.3";
|
2015-12-04 19:22:07 +03:00
|
|
|
|
2016-09-21 17:12:43 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "carnager";
|
|
|
|
repo = "rofi-pass";
|
|
|
|
rev = version;
|
2017-11-04 11:31:18 +03:00
|
|
|
sha256 = "1fn1j2rf3abc5qb44zfc8z8ffw6rva4xfp7597hwr1g3szacazpq";
|
2015-12-04 19:22:07 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2016-09-17 22:20:40 +03:00
|
|
|
cp -a rofi-pass $out/bin/rofi-pass
|
2015-12-04 19:22:07 +03:00
|
|
|
|
|
|
|
mkdir -p $out/share/doc/rofi-pass/
|
2016-09-17 22:20:40 +03:00
|
|
|
cp -a config.example $out/share/doc/rofi-pass/config.example
|
2015-12-04 19:22:07 +03:00
|
|
|
'';
|
|
|
|
|
2016-04-13 15:53:51 +03:00
|
|
|
wrapperPath = with stdenv.lib; makeBinPath [
|
2015-12-04 19:22:07 +03:00
|
|
|
coreutils
|
2015-12-10 14:05:39 +03:00
|
|
|
findutils
|
2016-09-21 17:12:43 +03:00
|
|
|
gawk
|
2015-12-10 14:05:39 +03:00
|
|
|
gnugrep
|
2016-09-21 17:12:43 +03:00
|
|
|
gnused
|
|
|
|
libnotify
|
2015-12-04 19:22:07 +03:00
|
|
|
pass
|
2015-12-10 14:05:39 +03:00
|
|
|
pwgen
|
|
|
|
rofi
|
|
|
|
utillinux
|
2016-09-21 17:12:43 +03:00
|
|
|
xclip
|
2015-12-04 19:22:07 +03:00
|
|
|
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;
|
2017-06-14 09:32:42 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny garbas ];
|
2015-12-04 19:22:07 +03:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2015-12-04 19:22:07 +03:00
|
|
|
};
|
|
|
|
}
|