1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

cups: fix tests

This commit is contained in:
Jan Malakhovski 2018-08-10 03:30:45 +00:00
parent d3b15144a7
commit a12d40eb7e

View file

@ -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 ]