-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
- For Linux, the real fix is `hardeningDisable` of "fortify"; - For macOS, the real fix is setting the C and CXX compilers in `desktop/build.sh` as well as disabling CMake install step; - Unfortunately for iOS we still need stdenvNoCC (or find a way to use GNU's ld instead of Apple's) Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ with pkgs; | |
"ios" = true; | ||
"" = true; | ||
}.${target-os} or false; | ||
_stdenv = stdenvNoCC; # TODO: Try to use stdenv for Darwin | ||
# TODO: Try to use stdenv for iOS. The problem is with building iOS as the build is trying to pass parameters to Apple's ld that are meant for GNU's ld (e.g. -dynamiclib) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
pedropombeiro
Contributor
|
||
_stdenv = if target-os == "ios" || target-os == "" then stdenvNoCC else stdenv; | ||
statusDesktop = callPackage ./scripts/lib/setup/nix/desktop { inherit target-os; stdenv = _stdenv; }; | ||
statusMobile = callPackage ./scripts/lib/setup/nix/mobile { inherit target-os; stdenv = _stdenv; }; | ||
nodeInputs = import ./scripts/lib/setup/nix/global-node-packages/output { | ||
|
@@ -53,7 +54,6 @@ with pkgs; | |
wget | ||
] ++ nodePkgs | ||
++ lib.optional isDarwin cocoapods | ||
++ lib.optional isLinux gcc7 | ||
This comment has been minimized.
Sorry, something went wrong.
hlolli
Contributor
|
||
++ lib.optional targetDesktop statusDesktop.buildInputs | ||
++ lib.optional targetMobile statusMobile.buildInputs; | ||
shellHook = | ||
|
@@ -68,4 +68,5 @@ with pkgs; | |
fi | ||
set +e | ||
''; | ||
hardeningDisable = statusDesktop.hardeningDisable; | ||
} |
Have you checked this out? https://nixos.wiki/wiki/Using_Clang_instead_of_GCC For clang compilers you can use
stdenv = pkgs.clangStdenv;