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