Skip to content

Commit

Permalink
pwgen_secure: init at 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Apr 21, 2019
1 parent 1fc591f commit 99fb22f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/tools/security/pwgen_secure/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib, python3Packages, fetchFromGitHub }:

with python3Packages;

buildPythonApplication rec {
pname = "pwgen_secure";
version = "0.9.1";

# GH is newer than Pypi and contains both library *and* the actual program
# whereas Pypi only has the library
src = fetchFromGitHub {
owner = "mjmunger";
repo = "pwgen_secure";
rev = "v${version}";
sha256 = "15md5606hzy1xfhj2lxmc0nvynyrcs4vxa5jdi34kfm31rdklj28";
};

propagatedBuildInputs = [ docopt ];

postInstall = ''
install -Dm755 spwgen.py $out/bin/spwgen
'';

meta = with lib; {
description = "Secure password generation library to replace pwgen";
homepage = https://github.com/mjmunger/pwgen_secure/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5164,6 +5164,8 @@ in

pwgen = callPackage ../tools/security/pwgen { };

pwgen_secure = callPackage ../tools/security/pwgen_secure { };

pwnat = callPackage ../tools/networking/pwnat { };

pwndbg = python3Packages.callPackage ../development/tools/misc/pwndbg { };
Expand Down

0 comments on commit 99fb22f

Please sign in to comment.