-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cross compilation on macOS #17
Changes from all commits
dea8726
1c46b56
6c46f0d
b1b4797
e4ce338
98bef81
ddba177
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ ... }@args: | ||
import | ||
(fetchGit { | ||
url = https://github.com/NixOS/nixpkgs; | ||
rev = "47b551c6a854a049045455f8ab1b8750e7b00625"; | ||
}) | ||
(args // { | ||
config.packageOverrides = pkgs: { | ||
openssl = (pkgs.openssl.override { | ||
# `perl` is only used at build time, but the derivation incorrectly uses host `perl` | ||
# as an input. | ||
perl = pkgs.buildPackages.buildPackages.perl; | ||
}).overrideAttrs (_: { | ||
# `man` output is troublesome, disable it. | ||
installTargets = "install_sw"; | ||
outputs = [ "bin" "dev" "out" ]; | ||
}); | ||
|
||
# These packages need rebuilding because of the harmless `openssl` change above. | ||
# The test suites for them fails (for some reason) so just disable them. | ||
libuv = pkgs.libuv.overrideAttrs (_: { doCheck = false; }); | ||
e2fsprogs = pkgs.e2fsprogs.overrideAttrs (_: { doCheck = false; }); | ||
}; | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ let | |
kernel = platform.parsed.kernel.name; | ||
abi = platform.parsed.abi.name; | ||
in | ||
if platform.isWasi then | ||
if platform.isWasi or false then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a huge help! I've been having issues building |
||
"${platform.parsed.cpu.name}-wasi" | ||
else { | ||
"i686-linux" = "i686-unknown-linux-${abi}"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let's pin the default
nixpkgs
.