aboutsummaryrefslogtreecommitdiff
path: root/pkgs/passwdqc/package.nix
blob: c8393bccfaad9121b3346a171a76c71ac6f890f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, fetchzip
, libxcrypt
, linux-pam
, stdenv
}:
stdenv.mkDerivation rec {
  pname = "passwdqc";
  version = "2.0.3";

  src = fetchzip {
    url = "https://www.openwall.com/passwdqc/passwdqc-${version}.tar.gz";
    hash = "sha256-EgPeccqS+DDDMBVMc4bd70EMnXFuyglftxuqoaYHwNY=";
  };

  propagatedBuildInputs = [
    linux-pam
    libxcrypt
  ];

  makeFlags = [
    "DESTDIR=$(out)"
    "BINDIR=/bin"
    "DEVEL_LIBDIR=/lib"
    "INCLUDEDIR=/include"
  ];

  meta = with lib; {
    description = "password/passphrase strength checking and enforcement";
    homepage = "https://www.openwall.com/passwdqc/";
    license = licenses.bsd0;
    maintainers = [ maintainers.simsor ];
  };
}