ed: fix cross build

This commit is contained in:
Orivej Desh 2017-12-08 21:33:53 +00:00 committed by John Ericson
parent 567feb3a54
commit c0ab4d5ff0

View File

@ -2,7 +2,7 @@
, buildPlatform, hostPlatform , buildPlatform, hostPlatform
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (rec {
name = "ed-${version}"; name = "ed-${version}";
version = "1.14.2"; version = "1.14.2";
@ -36,4 +36,9 @@ stdenv.mkDerivation rec {
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.unix;
}; };
} } // stdenv.lib.optionalAttrs (hostPlatform != buildPlatform) {
# This may be moved above during a stdenv rebuild.
preConfigure = ''
configureFlagsArray+=("CC=$CC")
'';
})