mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
ed: fix cross build
This commit is contained in:
parent
567feb3a54
commit
c0ab4d5ff0
@ -2,7 +2,7 @@
|
||||
, buildPlatform, hostPlatform
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (rec {
|
||||
name = "ed-${version}";
|
||||
version = "1.14.2";
|
||||
|
||||
@ -36,4 +36,9 @@ stdenv.mkDerivation rec {
|
||||
maintainers = [ ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
} // stdenv.lib.optionalAttrs (hostPlatform != buildPlatform) {
|
||||
# This may be moved above during a stdenv rebuild.
|
||||
preConfigure = ''
|
||||
configureFlagsArray+=("CC=$CC")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user