ungoogled-chromium: 131.0.6778.264-1 -> 132.0.6834.83-1 (#375093)
[NixPkgs.git] / pkgs / tools / security / pass / extensions / genphrase.nix
blob085b77342fbe193fbc953c97533ab3b96e11908a
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   python3,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "pass-genphrase";
10   version = "0.3";
12   src = fetchFromGitHub {
13     owner = "congma";
14     repo = "pass-genphrase";
15     rev = version;
16     sha256 = "01dff2jlp111y7vlmp1wbgijzphhlzc19m02fs8nzmn5vxyffanx";
17   };
19   dontBuild = true;
21   buildInputs = [ python3 ];
23   installTargets = [ "globalinstall" ];
25   installFlags = [ "PREFIX=$(out)" ];
27   postFixup = ''
28     substituteInPlace $out/lib/password-store/extensions/genphrase.bash \
29       --replace '$EXTENSIONS' "$out/lib/password-store/extensions/"
30   '';
32   meta = with lib; {
33     description = "Pass extension that generates memorable passwords";
34     homepage = "https://github.com/congma/pass-genphrase";
35     license = licenses.gpl3;
36     maintainers = with maintainers; [ seqizz ];
37     platforms = platforms.unix;
38   };