evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / pa / passwdqc / package.nix
blobf70076243fbbdd5b3cd2ba4f17299dda3702309c
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , libxcrypt
6 , pam
7 , pkg-config
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "passwdqc";
12   version = "2.0.3";
14   src = fetchFromGitHub {
15     owner = "openwall";
16     repo = "passwdqc";
17     rev = "v${finalAttrs.version}";
18     hash = "sha256-EgPeccqS+DDDMBVMc4bd70EMnXFuyglftxuqoaYHwNY=";
19   };
21   patches = [
22     (fetchpatch {
23       name = "0001-fix-solaris-macos-builds.patch";
24       url = "https://github.com/openwall/passwdqc/commit/fbf38229857f3d1982aa305c20da5e1ea0195b3e.patch";
25       hash = "sha256-FaEWROHwFzd4ZTeKyPvuAr9vcgnHEv8MhERblIU8JC4=";
26     })
27   ];
29   outputs = [ "out" "man" ];
31   nativeBuildInputs = [
32     pkg-config
33   ];
35   buildInputs = [
36     libxcrypt
37     pam
38   ];
40   strictDeps = true;
42   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
44   installFlags = [
45     # Yet another software that does not use GNUInstallDirs Convention...
46     "BINDIR=$(out)/bin"
47     "CONFDIR=$(out)/etc"
48     "DEVEL_LIBDIR=$(out)/lib"
49     "INCLUDEDIR=$(out)/include"
50     "LOCALEDIR=$(out)/share/locale"
51     "MANDIR=$(man)/man"
52     "PKGCONFIGDIR=$(out)/lib/pkgconfig"
53     "SECUREDIR=$(out)/lib/security"
54     "SECUREDIR_DARWIN=$(out)/lib/security"
55     "SHARED_LIBDIR=$(out)/lib"
56     "SHARED_LIBDIR_REL=$(out)/lib"
57   ];
59   meta = {
60     homepage = "https://www.openwall.com/passwdqc/";
61     description = "Passphrase strength checking and enforcement";
62     license = with lib.licenses; [ bsd3 ];
63     maintainers = with lib.maintainers; [ AndersonTorres ];
64     mainProgram = "passwdqc";
65     platforms = lib.platforms.unix;
66   };