summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/ed
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-12-08 21:33:53 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-09 17:08:06 -0500
commitc0ab4d5ff03b9d804f00a3d529cf490f7d604263 (patch)
tree7112ff8230d59b70f0285f24f7f7ce5b76703579 /pkgs/applications/editors/ed
parent567feb3a548c8185590c9bff6aa7200246f6af98 (diff)
ed: fix cross build
Diffstat (limited to 'pkgs/applications/editors/ed')
-rw-r--r--pkgs/applications/editors/ed/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/editors/ed/default.nix b/pkgs/applications/editors/ed/default.nix
index d8af0c6888ef..832dc3c0e799 100644
--- a/pkgs/applications/editors/ed/default.nix
+++ b/pkgs/applications/editors/ed/default.nix
@@ -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")
+ '';
+})