Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchgit 3, cmake 4, linux-pam 5, enablePython ? false 6, python ? null 7}: 8 9assert enablePython -> python != null; 10 11stdenv.mkDerivation rec { 12 pname = "libpam-wrapper"; 13 version = "1.1.3"; 14 15 src = fetchgit { 16 url = "git://git.samba.org/pam_wrapper.git"; 17 rev = "pam_wrapper-${version}"; 18 sha256 = "00mqhsashx7njrvxz085d0b88nizhdy7m3x17ip5yhvwsl63km6p"; 19 }; 20 21 nativeBuildInputs = [ cmake ] ++ lib.optionals enablePython [ python ]; 22 23 # We must use linux-pam, using openpam will result in broken fprintd. 24 buildInputs = [ linux-pam ]; 25 26 meta = with lib; { 27 description = "Wrapper for testing PAM modules"; 28 homepage = "https://cwrap.org/pam_wrapper.html"; 29 license = licenses.gpl3Plus; 30 maintainers = [ ]; 31 platforms = platforms.linux; 32 }; 33}