pappl: format via nixfmt

This commit is contained in:
NotAShelf 2024-10-16 01:46:15 +03:00
parent 91d64e1154
commit 740ad128e2
No known key found for this signature in database
GPG Key ID: AF26552424E53993

View File

@ -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 ];
};
}