12 withPAMSupport ? true,
17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
22 owner = "michaelrsweet";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-vp0DQvsQzuiXb5QAXVEcXNvyDJeRM99aO9/baZw9QwA=";
45 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
46 # upstream mentions these are not needed for Mac
47 # see: https://github.com/michaelrsweet/pappl#requirements
51 ++ lib.optionals withPAMSupport [
55 # testing requires some networking
58 doInstallCheck = true;
59 installCheckPhase = ''
60 $out/bin/pappl-makeresheader --help
63 enableParallelBuilding = true;
66 description = "C-based framework/library for developing CUPS Printer Applications";
67 changelog = "https://github.com/michaelrsweet/pappl/blob/v${version}/CHANGES.md";
68 mainProgram = "pappl-makeresheader";
69 homepage = "https://github.com/michaelrsweet/pappl";
70 license = lib.licenses.asl20;
71 platforms = lib.platforms.linux; # should also work for darwin, but requires additional work
72 maintainers = [ lib.maintainers.NotAShelf ];