diff --git a/pkgs/by-name/gu/gutenprint/package.nix b/pkgs/by-name/gu/gutenprint/package.nix index fc7888434245..74023c1e8e13 100644 --- a/pkgs/by-name/gu/gutenprint/package.nix +++ b/pkgs/by-name/gu/gutenprint/package.nix @@ -7,7 +7,6 @@ pkg-config, ijs, zlib, - gimp2Support ? false, gimp, cupsSupport ? true, cups, @@ -37,10 +36,6 @@ stdenv.mkDerivation (finalAttrs: { ijs zlib ] - ++ lib.optionals gimp2Support [ - gimp.gtk - gimp - ] ++ lib.optionals cupsSupport [ cups libusb1 @@ -53,19 +48,13 @@ stdenv.mkDerivation (finalAttrs: { # 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.apiVersion}\",g" \ - configure - ''; + 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 + ''; enableParallelBuilding = true;