diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-04-01 10:06:01 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-04-01 10:06:01 +0200 |
commit | ab15a62c68bf7bf3b02e3bab00d121cc1426733c (patch) | |
tree | 398a82403b04bfa0bae8cadf1c5a64cf83145965 /pkgs/misc/cups/drivers/mfcj470dw/default.nix | |
parent | c643ccaa8c91f78b8c89eb87589886b8906d5b38 (diff) | |
parent | a26357eefe017964448b5bb464163646b927a267 (diff) | |
download | nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.tar nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.tar.gz nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.tar.bz2 nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.tar.lz nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.tar.xz nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.tar.zst nixlib-ab15a62c68bf7bf3b02e3bab00d121cc1426733c.zip |
Merge branch 'master' into closure-size
Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
Diffstat (limited to 'pkgs/misc/cups/drivers/mfcj470dw/default.nix')
-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 b61344d1280e..b8458ae0af32 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.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/cupswrapper/brcupsconfpt1 |