pappl: format via nixfmt
This commit is contained in:
parent
91d64e1154
commit
740ad128e2
@ -1,13 +1,17 @@
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, avahi
|
||||
, cups
|
||||
, gnutls
|
||||
, libjpeg
|
||||
, libpng
|
||||
, libusb1
|
||||
, pkg-config
|
||||
, withPAMSupport ? true, pam
|
||||
, zlib
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
avahi,
|
||||
cups,
|
||||
gnutls,
|
||||
libjpeg,
|
||||
libpng,
|
||||
libusb1,
|
||||
pkg-config,
|
||||
withPAMSupport ? true,
|
||||
pam,
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -21,26 +25,32 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-Npry3H+QbAH19hoqAZuOwjpZwCPhOLewD8uKZlo4gdQ=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cups
|
||||
libjpeg
|
||||
libpng
|
||||
libusb1
|
||||
zlib
|
||||
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
# upstream mentions these are not needed for Mac
|
||||
# see: https://github.com/michaelrsweet/pappl#requirements
|
||||
avahi
|
||||
gnutls
|
||||
] ++ lib.optionals withPAMSupport [
|
||||
pam
|
||||
];
|
||||
buildInputs =
|
||||
[
|
||||
cups
|
||||
libjpeg
|
||||
libpng
|
||||
libusb1
|
||||
zlib
|
||||
]
|
||||
++ lib.optionals (!stdenv.hostPlatform.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;
|
||||
@ -59,6 +69,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://github.com/michaelrsweet/pappl";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux; # should also work for darwin, but requires additional work
|
||||
maintainers = [lib.maintainers.NotAShelf];
|
||||
maintainers = [ lib.maintainers.NotAShelf ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user