aboutsummaryrefslogtreecommitdiff
path: root/pkgs/passwdqc/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/passwdqc/package.nix')
-rw-r--r--pkgs/passwdqc/package.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/passwdqc/package.nix b/pkgs/passwdqc/package.nix
new file mode 100644
index 0000000..c8393bc
--- /dev/null
+++ b/pkgs/passwdqc/package.nix
@@ -0,0 +1,34 @@
1{ lib
2, fetchzip
3, libxcrypt
4, linux-pam
5, stdenv
6}:
7stdenv.mkDerivation rec {
8 pname = "passwdqc";
9 version = "2.0.3";
10
11 src = fetchzip {
12 url = "https://www.openwall.com/passwdqc/passwdqc-${version}.tar.gz";
13 hash = "sha256-EgPeccqS+DDDMBVMc4bd70EMnXFuyglftxuqoaYHwNY=";
14 };
15
16 propagatedBuildInputs = [
17 linux-pam
18 libxcrypt
19 ];
20
21 makeFlags = [
22 "DESTDIR=$(out)"
23 "BINDIR=/bin"
24 "DEVEL_LIBDIR=/lib"
25 "INCLUDEDIR=/include"
26 ];
27
28 meta = with lib; {
29 description = "password/passphrase strength checking and enforcement";
30 homepage = "https://www.openwall.com/passwdqc/";
31 license = licenses.bsd0;
32 maintainers = [ maintainers.simsor ];
33 };
34}