2016-09-17 20:20:40 +01:00
|
|
|
{ stdenv, fetchurl
|
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-09-17 20:20:40 +01:00
|
|
|
version = "1.4.3";
|
2015-12-04 16:22:07 +00:00
|
|
|
|
2016-09-17 20:20:40 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/carnager/rofi-pass/archive/${version}.tar.gz";
|
|
|
|
sha256 = "02z1w7wnmg0ymajxanl7z7fxl1w6by4r9w56zd10yr2zzbw7zcm7";
|
2015-12-04 16:22:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2016-09-17 20:20:40 +01:00
|
|
|
cp -a rofi-pass $out/bin/rofi-pass
|
2015-12-04 16:22:07 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/doc/rofi-pass/
|
2016-09-17 20:20:40 +01:00
|
|
|
cp -a config.example $out/share/doc/rofi-pass/config.example
|
2015-12-04 16:22:07 +00:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|