svn merge ^/nixpkgs/trunk

svn path=/nixpkgs/branches/libpng15/; revision=31846
This commit is contained in:
Yury G. Kudryashov
2012-01-26 08:45:19 +00:00
99 changed files with 1419 additions and 478 deletions

View File

@@ -1,8 +1,9 @@
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, libpng, libtiff, pam, openssl
, dbus, libusb, acl }:
let version = "1.4.7"; in
let
version = "1.4.7";
in
stdenv.mkDerivation {
name = "cups-${version}";
@@ -13,7 +14,14 @@ stdenv.mkDerivation {
sha256 = "1xlnkdqldq81pdqgisqbyh92k249bzz35m1f5bp4la06p00ksvjf";
};
buildInputs = [ pkgconfig zlib libjpeg libpng libtiff pam dbus libusb acl ];
# The following code looks strange, but it had to be arranged like
# this in order to avoid major rebuilds while testing portability to
# non-Linux platforms. This should be cleaned once the expression is
# stable.
buildInputs = [ pkgconfig zlib libjpeg libpng libtiff ]
++ stdenv.lib.optionals stdenv.isLinux [ pam dbus ]
++ [ libusb ]
++ stdenv.lib.optionals stdenv.isLinux [ acl ] ;
propagatedBuildInputs = [ openssl ];
@@ -41,7 +49,7 @@ stdenv.mkDerivation {
homepage = http://www.cups.org/;
description = "A standards-based printing system for UNIX";
license = "GPLv2"; # actually LGPL for the library and GPL for the rest
maintainers = [ stdenv.lib.maintainers.urkud ];
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.urkud stdenv.lib.maintainers.simons ];
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
};
}