3
0
Fork 0
forked from mirrors/nixpkgs

foo2zjs: make tests run, but disable

This commit is contained in:
Jan Malakhovski 2018-08-08 21:17:54 +00:00
parent 2a3a4ff642
commit c8baf7cc0c

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, foomatic-filters, bc, unzip, ghostscript, systemd, vim }: { stdenv, fetchurl, foomatic-filters, bc, unzip, ghostscript, systemd, vim, time }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "foo2zjs-20180519"; name = "foo2zjs-20180519";
@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
sed -e "/PRINTERID=/s@=.*@=$out/bin/usb_printerid@" -i hplj1000 sed -e "/PRINTERID=/s@=.*@=$out/bin/usb_printerid@" -i hplj1000
''; '';
checkInputs = [ time ];
doCheck = false; # fails to find its own binary. Also says "Tests will pass only if you are using ghostscript-8.71-16.fc14".
preInstall = '' preInstall = ''
mkdir -pv $out/{etc/udev/rules.d,lib/udev/rules.d,etc/hotplug/usb} mkdir -pv $out/{etc/udev/rules.d,lib/udev/rules.d,etc/hotplug/usb}
mkdir -pv $out/share/foomatic/db/source/{opt,printer,driver} mkdir -pv $out/share/foomatic/db/source/{opt,printer,driver}