mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #107009 from jonringer/add-pappl
pappl: init at 1.0.0
This commit is contained in:
commit
a76d69addf
2 changed files with 64 additions and 0 deletions
62
pkgs/applications/printing/pappl/default.nix
Normal file
62
pkgs/applications/printing/pappl/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, avahi
|
||||
, cups
|
||||
, gnutls
|
||||
, libjpeg
|
||||
, libpng
|
||||
, libusb1
|
||||
, pkg-config
|
||||
, withPAMSupport ? true, pam
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pappl";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "michaelrsweet";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1cg06v8hxska0hnybnmfda1v4h3ifjir24nx2iqx80kb6jq0hayb";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cups
|
||||
libjpeg
|
||||
libpng
|
||||
libusb1
|
||||
zlib
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||
# upstream mentions these are not needed for Mac
|
||||
# see: https://github.com/michaelrsweet/pappl#requirements
|
||||
avahi
|
||||
gnutls
|
||||
] ++ lib.optionals withPAMSupport [
|
||||
pam
|
||||
];
|
||||
|
||||
# testing requires some networking
|
||||
# doCheck = true;
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/pappl-makeresheader --help
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "C-based framework/library for developing CUPS Printer Applications";
|
||||
homepage = "https://github.com/michaelrsweet/pappl";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux; # should also work for darwin, but requires additional work
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
|
@ -6435,6 +6435,8 @@ in
|
|||
|
||||
papertrail = callPackage ../tools/text/papertrail { };
|
||||
|
||||
pappl = callPackage ../applications/printing/pappl { };
|
||||
|
||||
par2cmdline = callPackage ../tools/networking/par2cmdline { };
|
||||
|
||||
parallel = callPackage ../tools/misc/parallel { };
|
||||
|
|
Loading…
Reference in a new issue