2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pass, rofi, coreutils, util-linux, xdotool, gnugrep
|
2016-09-21 16:12:43 +02:00
|
|
|
, libnotify, pwgen, findutils, gawk, gnused, xclip, makeWrapper
|
|
|
|
}:
|
2015-12-04 17:22:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rofi-pass";
|
2019-02-15 13:54:24 +01:00
|
|
|
version = "2.0.2";
|
2015-12-04 17:22:07 +01:00
|
|
|
|
2016-09-21 16:12:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "carnager";
|
|
|
|
repo = "rofi-pass";
|
|
|
|
rev = version;
|
2019-02-15 13:54:24 +01:00
|
|
|
sha256 = "131jpcwyyzgzjn9lx4k1zn95pd68pjw4i41jfzcp9z9fnazyln5n";
|
2015-12-04 17:22:07 +01:00
|
|
|
};
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-12-04 17:22:07 +01:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2016-09-17 21:20:40 +02:00
|
|
|
cp -a rofi-pass $out/bin/rofi-pass
|
2015-12-04 17:22:07 +01:00
|
|
|
|
|
|
|
mkdir -p $out/share/doc/rofi-pass/
|
2016-09-17 21:20:40 +02:00
|
|
|
cp -a config.example $out/share/doc/rofi-pass/config.example
|
2015-12-04 17:22:07 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
wrapperPath = with lib; makeBinPath [
|
2015-12-04 17:22:07 +01:00
|
|
|
coreutils
|
2015-12-10 12:05:39 +01:00
|
|
|
findutils
|
2016-09-21 16:12:43 +02:00
|
|
|
gawk
|
2015-12-10 12:05:39 +01:00
|
|
|
gnugrep
|
2016-09-21 16:12:43 +02:00
|
|
|
gnused
|
|
|
|
libnotify
|
2019-05-29 16:05:21 +02:00
|
|
|
(pass.withExtensions (ext: [ ext.pass-otp ]))
|
2015-12-10 12:05:39 +01:00
|
|
|
pwgen
|
|
|
|
rofi
|
2020-11-24 16:29:28 +01:00
|
|
|
util-linux
|
2016-09-21 16:12:43 +02:00
|
|
|
xclip
|
2015-12-04 17:22:07 +01: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/carnager/rofi-pass";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = with lib.platforms; linux;
|
2015-12-04 17:22:07 +01:00
|
|
|
};
|
|
|
|
}
|