2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2018-12-06 18:36:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pass-genphrase";
|
2019-11-14 13:56:57 +00:00
|
|
|
version = "0.2";
|
2018-12-06 18:36:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "congma";
|
|
|
|
repo = "pass-genphrase";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2019-11-14 13:56:57 +00:00
|
|
|
sha256 = "1sdkmz5s6wdx4vdlgqf5kmyrm17zwzy3n52s13qpx32bnnajap1h";
|
2018-12-06 18:36:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2019-11-04 12:33:53 +00:00
|
|
|
installTargets = [ "globalinstall" ];
|
2018-12-06 18:36:01 +00: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-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/congma/pass-genphrase";
|
2018-12-06 18:36:01 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seqizz ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|