mktemp: fix w/cross

This commit is contained in:
Will Dietz 2018-01-14 19:25:25 -06:00
parent e02f427b4a
commit 3785e0ac7e

View File

@ -6,6 +6,11 @@ stdenv.mkDerivation {
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff"; NROFF = "${groff}/bin/nroff";
# Don't use "install -s"
postPatch = ''
substituteInPlace Makefile.in --replace " 0555 -s " " 0555 "
'';
src = fetchurl { src = fetchurl {
url = ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz; url = ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz;
sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f"; sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f";