@@ -0,0 +1,32 @@
1+{ stdenv, pass, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ name = "pass-genphrase-${version}";
5+ version = "0.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "congma";
9+ repo = "pass-genphrase";
10+ rev = "${version}";
11+ sha256 = "0vcg3b79n1r949qfn8ns85bq2mfsmbf4jw2dlzif8425n8ppfsgd";
12+ };
13+
14+ dontBuild = true;
15+
16+ installTargets = "globalinstall";
17+
18+ installFlags = [ "PREFIX=$(out)" ];
19+
20+ postFixup = ''
21+ substituteInPlace $out/lib/password-store/extensions/genphrase.bash \
22+ --replace '$EXTENSIONS' "$out/lib/password-store/extensions/"
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ description = "Pass extension that generates memorable passwords";
27+ homepage = https://github.com/congma/pass-genphrase;
28+ license = licenses.gpl3;
29+ maintainers = with maintainers; [ seqizz ];
30+ platforms = platforms.unix;
31+ };
32+}