-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to rules_nixpkgs_core module
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/toolchains/cc/cc.nix b/toolchains/cc/cc.nix | ||
index e77d97c7..32c724dc 100644 | ||
--- a/toolchains/cc/cc.nix | ||
+++ b/toolchains/cc/cc.nix | ||
@@ -40,10 +40,11 @@ let | ||
echo "-F${Foundation}/Library/Frameworks" >> $out/nix-support/cc-cflags | ||
echo "-F${SystemConfiguration}/Library/Frameworks" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.llvmPackages.libcxx}/lib" >> $out/nix-support/cc-cflags | ||
- echo "-L${pkgs.llvmPackages.libcxxabi}/lib" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.libiconv}/lib" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.darwin.libobjc}/lib" >> $out/nix-support/cc-cflags | ||
echo "-resource-dir=${pkgs.stdenv.cc}/resource-root" >> $out/nix-support/cc-cflags | ||
+ '' + pkgs.lib.optionalString (builtins.hasAttr "libcxxabi" pkgs.llvmPackages) '' | ||
+ echo "-L${pkgs.llvmPackages.libcxxabi}/lib" >> $out/nix-support/cc-cflags | ||
''; | ||
}; | ||
cc = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/toolchains/cc/cc.nix b/toolchains/cc/cc.nix | ||
index e77d97c7..32c724dc 100644 | ||
--- a/toolchains/cc/cc.nix | ||
+++ b/toolchains/cc/cc.nix | ||
@@ -40,10 +40,11 @@ let | ||
echo "-F${Foundation}/Library/Frameworks" >> $out/nix-support/cc-cflags | ||
echo "-F${SystemConfiguration}/Library/Frameworks" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.llvmPackages.libcxx}/lib" >> $out/nix-support/cc-cflags | ||
- echo "-L${pkgs.llvmPackages.libcxxabi}/lib" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.libiconv}/lib" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.darwin.libobjc}/lib" >> $out/nix-support/cc-cflags | ||
echo "-resource-dir=${pkgs.stdenv.cc}/resource-root" >> $out/nix-support/cc-cflags | ||
+ '' + pkgs.lib.optionalString (builtins.hasAttr "libcxxabi" pkgs.llvmPackages) '' | ||
+ echo "-L${pkgs.llvmPackages.libcxxabi}/lib" >> $out/nix-support/cc-cflags | ||
''; | ||
}; | ||
cc = |