9 assert enablePython -> python != null;
11 stdenv.mkDerivation rec {
12 pname = "libpam-wrapper";
16 url = "git://git.samba.org/pam_wrapper.git";
17 rev = "pam_wrapper-${version}";
18 sha256 = "00mqhsashx7njrvxz085d0b88nizhdy7m3x17ip5yhvwsl63km6p";
21 nativeBuildInputs = [ cmake ] ++ lib.optionals enablePython [ python ];
23 # We must use linux-pam, using openpam will result in broken fprintd.
24 buildInputs = [ linux-pam ];
27 description = "Wrapper for testing PAM modules";
28 homepage = "https://cwrap.org/pam_wrapper.html";
29 license = licenses.gpl3Plus;
31 platforms = platforms.linux;