2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pass-genphrase";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "congma";
|
|
|
|
repo = "pass-genphrase";
|
|
|
|
rev = version;
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "01dff2jlp111y7vlmp1wbgijzphhlzc19m02fs8nzmn5vxyffanx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installTargets = [ "globalinstall" ];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/lib/password-store/extensions/genphrase.bash \
|
|
|
|
--replace '$EXTENSIONS' "$out/lib/password-store/extensions/"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Pass extension that generates memorable passwords";
|
|
|
|
homepage = "https://github.com/congma/pass-genphrase";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seqizz ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|