2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-12-06 18:36:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pass-genphrase";
|
2020-11-19 12:44:10 +00:00
|
|
|
version = "0.3";
|
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;
|
2020-11-19 12:44:10 +00:00
|
|
|
sha256 = "01dff2jlp111y7vlmp1wbgijzphhlzc19m02fs8nzmn5vxyffanx";
|
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/"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-06 18:36:01 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|