ed: fix cross build

authored by Orivej Desh and committed by John Ericson c0ab4d5f 567feb3a

+7 -2
+7 -2
pkgs/applications/editors/ed/default.nix
··· 2 2 , buildPlatform, hostPlatform 3 3 }: 4 4 5 - stdenv.mkDerivation rec { 5 + stdenv.mkDerivation (rec { 6 6 name = "ed-${version}"; 7 7 version = "1.14.2"; 8 8 ··· 36 36 maintainers = [ ]; 37 37 platforms = stdenv.lib.platforms.unix; 38 38 }; 39 - } 39 + } // stdenv.lib.optionalAttrs (hostPlatform != buildPlatform) { 40 + # This may be moved above during a stdenv rebuild. 41 + preConfigure = '' 42 + configureFlagsArray+=("CC=$CC") 43 + ''; 44 + })