1 { lib, stdenv, fetchFromGitHub
10 , withPAMSupport ? true, pam
14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
19 owner = "michaelrsweet";
22 sha256 = "sha256-FsmR0fFb9bU9G3oUyJU1eDLcoZ6OQ2//TINlPrW6lU0=";
27 name = "file-offset-bits-64-linux.patch";
28 url = "https://github.com/michaelrsweet/pappl/commit/7ec4ce4331b6637c54a37943269e05d15ff6dd47.patch";
29 sha256 = "sha256-x5lriopWw6Mn2qjv19flsleEzPMHU4jYWRy0y6hTL5k=";
33 outputs = [ "out" "dev" ];
45 ] ++ lib.optionals (!stdenv.isDarwin) [
46 # upstream mentions these are not needed for Mac
47 # see: https://github.com/michaelrsweet/pappl#requirements
50 ] ++ lib.optionals withPAMSupport [
54 # testing requires some networking
57 doInstallCheck = true;
58 installCheckPhase = ''
59 $out/bin/pappl-makeresheader --help
62 enableParallelBuilding = true;
65 description = "C-based framework/library for developing CUPS Printer Applications";
66 homepage = "https://github.com/michaelrsweet/pappl";
67 license = licenses.asl20;
68 platforms = platforms.linux; # should also work for darwin, but requires additional work
69 maintainers = with maintainers; [ jonringer ];