Skip to content

Commit

Permalink
cups: 1.7.5 -> 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennington committed Mar 26, 2015
1 parent eff828a commit 032859f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 20 additions & 5 deletions pkgs/misc/cups/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,39 @@
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, libpng, libtiff, pam, openssl
, dbus, libusb, acl }:
, dbus, acl
, libusb ? null, gnutls ? null, avahi ? null, libpaper ? null
}:

let version = "1.7.5"; in
let version = "2.0.2"; in

with stdenv.lib;
stdenv.mkDerivation {
name = "cups-${version}";

passthru = { inherit version; };

src = fetchurl {
url = "https://www.cups.org/software/${version}/cups-${version}-source.tar.bz2";
sha256 = "00mx4rpiqw9cwx46bd3hd5lcgmcxy63zfnmkr02smanv8xl4rjqq";
sha256 = "12xild9nrhqnrzx8zqh78v3chm4mpp5gf5iamr0h9zb6dgvj11w5";
};

buildInputs = [ pkgconfig zlib libjpeg libpng libtiff libusb ]
buildInputs = [ pkgconfig zlib libjpeg libpng libtiff libusb gnutls avahi libpaper ]
++ stdenv.lib.optionals stdenv.isLinux [ pam dbus.libs acl ] ;

propagatedBuildInputs = [ openssl ];

configureFlags = "--localstatedir=/var --sysconfdir=/etc --enable-dbus"; # --with-dbusdir
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
"--with-systemd=\${out}/lib/systemd/system"
"--enable-raw-printing"
"--enable-threads"
] ++ optionals stdenv.isLinux [
"--enable-dbus"
"--enable-pam"
] ++ optional (libusb != null) "--enable-libusb"
++ optional (gnutls != null) "--enable-ssl"
++ optional (avahi != null) "--enable-avahi"
++ optional (libpaper != null) "--enable-libpaper";

installFlags =
[ # Don't try to write in /var at build time.
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13534,7 +13534,9 @@ let

beep = callPackage ../misc/beep { };

cups = callPackage ../misc/cups { libusb = libusb1; };
cups = callPackage ../misc/cups {
libusb = libusb1;
};

cups_filters = callPackage ../misc/cups/filters.nix { };

Expand Down

2 comments on commit 032859f

@domenkozar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wkennington this breaks printing nixos test, can we revert the bump?

@wkennington
Copy link
Contributor Author

@wkennington wkennington commented on 032859f Mar 31, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.