2015-12-04 16:22:07 +00:00
|
|
|
{ stdenv, fetchgit
|
2016-06-14 08:54:19 +01:00
|
|
|
, pass, rofi, coreutils, utillinux, xdotool, gnugrep, pwgen, findutils, gawk
|
2015-12-04 16:22:07 +00:00
|
|
|
, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rofi-pass-${version}";
|
2016-06-14 08:54:19 +01:00
|
|
|
version = "1.3.2";
|
2015-12-04 16:22:07 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/carnager/rofi-pass";
|
|
|
|
rev = "refs/tags/${version}";
|
2016-06-14 08:54:19 +01:00
|
|
|
sha256 = "1xqp8s0yyjs2ca9mf8lbz8viwl9xzxf5kk1v68v9hqdgxj26wgls";
|
2015-12-04 16:22:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2016-04-13 13:53:51 +01:00
|
|
|
wrapperPath = with stdenv.lib; makeBinPath [
|
2015-12-04 16:22:07 +00:00
|
|
|
coreutils
|
2015-12-10 11:05:39 +00:00
|
|
|
findutils
|
|
|
|
gnugrep
|
2015-12-04 16:22:07 +00:00
|
|
|
pass
|
2015-12-10 11:05:39 +00:00
|
|
|
pwgen
|
|
|
|
rofi
|
|
|
|
utillinux
|
2015-12-04 16:22:07 +00:00
|
|
|
xdotool
|
2016-06-14 08:54:19 +01:00
|
|
|
gawk
|
2015-12-04 16:22:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2015-12-04 16:22:07 +00:00
|
|
|
};
|
|
|
|
}
|