10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-EgPeccqS+DDDMBVMc4bd70EMnXFuyglftxuqoaYHwNY=";
23 name = "0001-fix-solaris-macos-builds.patch";
24 url = "https://github.com/openwall/passwdqc/commit/fbf38229857f3d1982aa305c20da5e1ea0195b3e.patch";
25 hash = "sha256-FaEWROHwFzd4ZTeKyPvuAr9vcgnHEv8MhERblIU8JC4=";
29 outputs = [ "out" "man" ];
42 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
45 # Yet another software that does not use GNUInstallDirs Convention...
48 "DEVEL_LIBDIR=$(out)/lib"
49 "INCLUDEDIR=$(out)/include"
50 "LOCALEDIR=$(out)/share/locale"
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"
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;