about summary refs log tree commit diff
path: root/pkgs/applications/misc/iterm2
diff options
context:
space:
mode:
authorMatthew Glazar <strager.nds@gmail.com>2019-03-28 20:41:49 -0700
committerMatthew Glazar <strager.nds@gmail.com>2019-03-28 20:44:08 -0700
commit689e1efda0938c95a561f9e62696229c449cd865 (patch)
treef27ae689f0dd90401470519b75f2f08ded45d5ea /pkgs/applications/misc/iterm2
parentb0fa740b89c12c15cb88fe5f0b52c2e806fb5fd5 (diff)
iterm2: fix build
During iterm2's build, xcodebuild invokes $LD and passes it options such
as -isysroot. These options are intended for the linker driver (clang),
not for the linker directly. ld64 ($LD) does not recognize these
options, causing iterm2's build to fail.

Set $LD to $CC (clang) as intended, making iterm2's build succeed.
Diffstat (limited to 'pkgs/applications/misc/iterm2')
-rw-r--r--pkgs/applications/misc/iterm2/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/misc/iterm2/default.nix b/pkgs/applications/misc/iterm2/default.nix
index fa2ac38d383b8..e493226be60a5 100644
--- a/pkgs/applications/misc/iterm2/default.nix
+++ b/pkgs/applications/misc/iterm2/default.nix
@@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
   postPatch = ''
     sed -i -e 's/CODE_SIGN_IDENTITY = "Developer ID Application"/CODE_SIGN_IDENTITY = ""/g' ./iTerm2.xcodeproj/project.pbxproj
   '';
+  preConfigure = "LD=$CC";
   makeFlagsArray = ["Deployment"];
   installPhase = ''
     mkdir -p "$out/Applications"