-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add --omit=optional
to spago build
#86
base: main
Are you sure you want to change the base?
Add --omit=optional
to spago build
#86
Conversation
Since node-gyp was failing to build cpu-features on x86 Darwin, which is an optional dependency of ssh2 but it is only used to set default ciphers.
Hm — I'm not sure we can remove nix build .#spago-unstable This produces the following error:
|
hm weird, I don't see that on Fedora. Are you on NixOS? |
Yeah, I’m on NixOS. Weird! I’ll take another look at this over the weekend. |
In case anyone else needs a fix in the meantime, you ought to be able to add an overlay that passes in the final: prev: {
spago-unstable = prev.spago-unstable.overrideAttrs (previousAttrs: {
npmInstallFlags = previousAttrs.npmInstallFlags ++ [
"--omit=optional"
];
});
}; Slap it in your overlays somehow. And you should be able to build. |
node-gyp
was failing to buildcpu-features
on x86 Darwin (due to some issue withclang
, see below), which is an optional npm-wrapped native dependency ofssh2
, but it is only used to set default ciphers which doesn't seem relevant.This patch should make it into a pure node package. Although I still see
cpu-features
appearing on x86 Linux ...? No idea what's up with that, but at least it seems to build both places now.Error logs