{ 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="; }; buildInputs = [ 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; platforms = platforms.linux; maintainers = [ maintainers.simsor ]; }; }