2019-06-16 12:59:06 -07:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2018-12-06 10:36:01 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "pass-genphrase";
|
2019-11-14 05:56:57 -08:00
|
|
|
version = "0.2";
|
2018-12-06 10:36:01 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "congma";
|
|
|
|
repo = "pass-genphrase";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2019-11-14 05:56:57 -08:00
|
|
|
sha256 = "1sdkmz5s6wdx4vdlgqf5kmyrm17zwzy3n52s13qpx32bnnajap1h";
|
2018-12-06 10:36:01 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2019-11-04 04:33:53 -08:00
|
|
|
installTargets = [ "globalinstall" ];
|
2018-12-06 10:36:01 -08:00
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/lib/password-store/extensions/genphrase.bash \
|
|
|
|
--replace '$EXTENSIONS' "$out/lib/password-store/extensions/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Pass extension that generates memorable passwords";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/congma/pass-genphrase";
|
2018-12-06 10:36:01 -08:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seqizz ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|