diff options
author | joachifm <joachifm@users.noreply.github.com> | 2016-03-18 22:08:23 +0000 |
---|---|---|
committer | joachifm <joachifm@users.noreply.github.com> | 2016-03-18 22:08:23 +0000 |
commit | 25a1e5d5f252b54fc2f49d17440d240524deaca5 (patch) | |
tree | cda9bccbd1965b9bff8884579f01526c49ba7e0a /pkgs/misc/cups | |
parent | 59caca43c1af42cfa06e883ba79311666a14d052 (diff) | |
parent | e6b85e6b787f8e253e54698d65fd8184e543bc32 (diff) | |
download | nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.tar nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.tar.gz nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.tar.bz2 nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.tar.lz nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.tar.xz nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.tar.zst nixlib-25a1e5d5f252b54fc2f49d17440d240524deaca5.zip |
Merge pull request #14010 from yochai/master
mfcj470dw: fix missing file error
Diffstat (limited to 'pkgs/misc/cups')
-rw-r--r-- | pkgs/misc/cups/drivers/mfcj470dw/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/misc/cups/drivers/mfcj470dw/default.nix b/pkgs/misc/cups/drivers/mfcj470dw/default.nix index d1a1b239371a..d6ce3fbcdc64 100644 --- a/pkgs/misc/cups/drivers/mfcj470dw/default.nix +++ b/pkgs/misc/cups/drivers/mfcj470dw/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, bash, file }: +{ stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, a2ps, coreutils, gnused, gawk, file }: stdenv.mkDerivation rec { name = "mfcj470dw-cupswrapper-${version}"; @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { }) ]; - buildInputs = [ dpkg cups patchelf bash ]; + buildInputs = [ cups ghostscript dpkg a2ps ]; unpackPhase = "true"; @@ -29,9 +29,20 @@ stdenv.mkDerivation rec { substituteInPlace $out/opt/brother/Printers/mfcj470dw/lpd/filtermfcj470dw \ --replace /opt "$out/opt" \ - --replace file "/run/current-system/sw/bin/file" + --replace file "${file}/bin/file" \ + --replace sed "${gnused}/bin/sed" \ + --replace mktemp "${coreutils}/bin/mktemp" \ + --replace cat "${coreutils}/bin/cat" \ + --replace rm "${coreutils}/bin/rm" sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 + substituteInPlace $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 \ + --replace awk "${gawk}/bin/awk" \ + --replace cat "${coreutils}/bin/cat" \ + --replace mktemp "${coreutils}/bin/mktemp" \ + --replace sed "${gnused}/bin/sed" \ + --replace expr "${coreutils}/bin/expr" \ + --replace rm "${coreutils}/bin/rm" patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/cupswrapper/brcupsconfpt1 |