ed: fix cross build
This commit is contained in:
parent
567feb3a54
commit
c0ab4d5ff0
@ -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")
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user