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