Unverified Commit 740ad128 authored by NotAShelf's avatar NotAShelf
Browse files

pappl: format via nixfmt

parent 91d64e11
Loading
Loading
Loading
Loading
+36 −26
Original line number Diff line number Diff line
{ 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,24 +25,30 @@ stdenv.mkDerivation rec {
    hash = "sha256-Npry3H+QbAH19hoqAZuOwjpZwCPhOLewD8uKZlo4gdQ=";
  };

  outputs = [ "out" "dev" ];
  outputs = [
    "out"
    "dev"
  ];

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
  buildInputs =
    [
      cups
      libjpeg
      libpng
      libusb1
      zlib
  ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
    ]
    ++ 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 [
    ]
    ++ lib.optionals withPAMSupport [
      pam
    ];