2015-05-30 11:44:47 +03:00
|
|
|
{ stdenv, fetchgit, rofi, wmctrl, xprop, xdotool}:
|
2015-05-29 17:41:13 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-19 01:26:52 +03:00
|
|
|
name = "rofi-pass-${version}";
|
2015-08-30 10:54:21 +03:00
|
|
|
version = "1.2";
|
2015-05-29 17:41:13 +03:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/carnager/rofi-pass";
|
2015-08-07 11:15:44 +03:00
|
|
|
rev = "refs/tags/${version}";
|
2015-08-30 10:54:21 +03:00
|
|
|
sha256 = "1dlaplr18qady5g8sp8xgiqdw81mfx9iisihf8appr5s4sjm559h";
|
2015-05-29 17:41:13 +03:00
|
|
|
};
|
|
|
|
|
2015-05-30 11:44:47 +03:00
|
|
|
buildInputs = [ rofi wmctrl xprop xdotool ];
|
2015-05-29 17:41:13 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-05-30 11:44:47 +03:00
|
|
|
description = "A script to make rofi work with password-store";
|
2015-05-29 17:41:13 +03:00
|
|
|
homepage = https://github.com/carnager/rofi-pass;
|
2015-06-01 11:58:01 +03:00
|
|
|
maintainers = [stdenv.lib.maintainers.hiberno];
|
2015-05-29 17:41:13 +03:00
|
|
|
};
|
|
|
|
}
|