mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #51631 from seqizz/pass_genphrase
passExtensions.pass-genphrase: init at 0.1
This commit is contained in:
commit
cc8deff2d4
3 changed files with 38 additions and 0 deletions
|
@ -3940,6 +3940,11 @@
|
|||
github = "seppeljordan";
|
||||
name = "Sebastian Jordan";
|
||||
};
|
||||
seqizz = {
|
||||
email = "seqizz@gmail.com";
|
||||
github = "seqizz";
|
||||
name = "Gurkan Gur";
|
||||
};
|
||||
sfrijters = {
|
||||
email = "sfrijters@gmail.com";
|
||||
github = "sfrijters";
|
||||
|
|
|
@ -12,4 +12,5 @@ with pkgs;
|
|||
pass-otp = callPackage ./otp.nix {};
|
||||
pass-tomb = callPackage ./tomb.nix {};
|
||||
pass-update = callPackage ./update.nix {};
|
||||
pass-genphrase = callPackage ./genphrase.nix {};
|
||||
}
|
||||
|
|
32
pkgs/tools/security/pass/extensions/genphrase.nix
Normal file
32
pkgs/tools/security/pass/extensions/genphrase.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, pass, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pass-genphrase-${version}";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "congma";
|
||||
repo = "pass-genphrase";
|
||||
rev = "${version}";
|
||||
sha256 = "0vcg3b79n1r949qfn8ns85bq2mfsmbf4jw2dlzif8425n8ppfsgd";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue