mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
cups: fix tests
This commit is contained in:
parent
d3b15144a7
commit
a12d40eb7e
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, pkgconfig, removeReferencesTo
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, removeReferencesTo
|
||||||
, zlib, libjpeg, libpng, libtiff, pam, dbus, systemd, acl, gmp, darwin
|
, zlib, libjpeg, libpng, libtiff, pam, dbus, systemd, acl, gmp, darwin
|
||||||
, libusb ? null, gnutls ? null, avahi ? null, libpaper ? null
|
, libusb ? null, gnutls ? null, avahi ? null, libpaper ? null
|
||||||
|
, coreutils
|
||||||
}:
|
}:
|
||||||
|
|
||||||
### IMPORTANT: before updating cups, make sure the nixos/tests/printing.nix test
|
### IMPORTANT: before updating cups, make sure the nixos/tests/printing.nix test
|
||||||
@ -30,6 +31,11 @@ stdenv.mkDerivation rec {
|
|||||||
./cups-clean-dirty.patch
|
./cups-clean-dirty.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace cups/testfile.c \
|
||||||
|
--replace 'cupsFileFind("cat", "/bin' 'cupsFileFind("cat", "${coreutils}/bin'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
|
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
|
||||||
|
|
||||||
buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ]
|
buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ]
|
||||||
|
Loading…
Reference in New Issue
Block a user