f5c30005f5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gutenprint/versions. These checks were done: - built on NixOS - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/escputil -h’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/escputil --help’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/testpattern -h’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/testpattern --help’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/testpattern help’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/cups-genppd.5.2 -h’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/cups-genppd.5.2 help’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/cups-genppdupdate -h’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/cups-genppdupdate --help’ got 0 exit code - ran ‘/nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14/bin/cups-genppdupdate help’ got 0 exit code - found 5.2.14 with grep in /nix/store/8pdjcfv46m5w8ifh68mvajwkn3vjwal1-gutenprint-5.2.14 - directory tree listing: https://gist.github.com/6d652f72cb774ccd13cc489d708ad63d
52 lines
1.6 KiB
Nix
52 lines
1.6 KiB
Nix
# this package was called gimp-print in the past
|
|
{ stdenv, lib, fetchurl, makeWrapper, pkgconfig
|
|
, ijs, zlib
|
|
, gimp2Support ? false, gimp
|
|
, cupsSupport ? true, cups, libusb, perl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gutenprint-5.2.14";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gimp-print/${name}.tar.bz2";
|
|
sha256 = "1293x19gw1b742id7c7bz5giv3vlxaqpmbdz2g0n99wny5k0ggs5";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
buildInputs =
|
|
[ ijs zlib ]
|
|
++ lib.optionals gimp2Support [ gimp.gtk gimp ]
|
|
++ lib.optionals cupsSupport [ cups libusb perl ];
|
|
|
|
configureFlags = lib.optionals cupsSupport [
|
|
"--disable-static-genppd" # should be harmless on NixOS
|
|
];
|
|
|
|
# FIXME: hacky because we modify generated configure, but I haven't found a better way.
|
|
# makeFlags doesn't change this everywhere (e.g. in cups-genppdupdate).
|
|
preConfigure = lib.optionalString cupsSupport ''
|
|
sed -i \
|
|
-e "s,cups_conf_datadir=.*,cups_conf_datadir=\"$out/share/cups\",g" \
|
|
-e "s,cups_conf_serverbin=.*,cups_conf_serverbin=\"$out/lib/cups\",g" \
|
|
-e "s,cups_conf_serverroot=.*,cups_conf_serverroot=\"$out/etc/cups\",g" \
|
|
configure
|
|
'' + lib.optionalString gimp2Support ''
|
|
sed -i \
|
|
-e "s,gimp2_plug_indir=.*,gimp2_plug_indir=\"$out/lib/gimp/${gimp.majorVersion}\",g" \
|
|
configure
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# Testing is very, very long.
|
|
# doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Ghostscript and cups printer drivers";
|
|
homepage = https://sourceforge.net/projects/gimp-print/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
isGutenprint = true;
|
|
};
|
|
}
|