2009-08-28 01:32:13 +02:00
|
|
|
# this package was called gimp-print in the past
|
2016-01-17 01:29:56 +01:00
|
|
|
{ stdenv, lib, fetchurl, pkgconfig
|
|
|
|
, ijs, makeWrapper
|
|
|
|
, gimp2Support ? true, gimp
|
|
|
|
, cupsSupport ? true, cups, libusb, perl
|
|
|
|
}:
|
2009-08-28 01:32:13 +02:00
|
|
|
|
2016-01-17 01:29:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gutenprint-5.2.11";
|
2009-08-28 01:32:13 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-17 01:29:56 +01:00
|
|
|
url = "mirror://sourceforge/gimp-print/${name}.tar.bz2";
|
|
|
|
sha256 = "1yadw96rgp1z0jv1wxrz6cds36nb693w3xlv596xw9r5w394r8y1";
|
2009-08-28 01:32:13 +02:00
|
|
|
};
|
|
|
|
|
2016-01-17 01:29:56 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
|
|
buildInputs =
|
|
|
|
[ ijs ]
|
|
|
|
++ lib.optionals gimp2Support [ gimp.gtk gimp ]
|
|
|
|
++ lib.optionals cupsSupport [ cups libusb perl ];
|
|
|
|
|
|
|
|
configureFlags = lib.optionals cupsSupport [
|
|
|
|
"--disable-static-genppd" # should be harmless on NixOS
|
|
|
|
];
|
2009-08-28 01:32:13 +02:00
|
|
|
|
2016-01-17 01:29:56 +01:00
|
|
|
enableParallelBuilding = true;
|
2009-08-28 01:32:13 +02:00
|
|
|
|
2016-01-17 01:29:56 +01:00
|
|
|
# Testing is very, very long.
|
|
|
|
# doCheck = true;
|
2009-08-28 01:32:13 +02:00
|
|
|
|
2016-01-17 01:29:56 +01:00
|
|
|
installFlags =
|
|
|
|
lib.optionals cupsSupport [ "cups_conf_datadir=$(out)/share/cups" "cups_conf_serverbin=$(out)/lib/cups" "cups_conf_serverroot=$(out)/etc/cups" ]
|
|
|
|
++ lib.optionals gimp2Support [ "gimp2_plug_indir=$(out)/${gimp.name}-plugins" ];
|
2009-08-28 01:32:13 +02:00
|
|
|
|
2016-01-17 01:29:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-08-28 01:32:13 +02:00
|
|
|
description = "Ghostscript and cups printer drivers";
|
|
|
|
homepage = http://sourceforge.net/projects/gimp-print/;
|
2016-01-17 01:29:56 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2009-08-28 01:32:13 +02:00
|
|
|
};
|
|
|
|
}
|