-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
factorio: fix darwin build #29044
factorio: fix darwin build #29044
Conversation
Oops, I overlooked that possibility. Thanks for the quick catch. |
An alternative is to refactor along these lines let # ignore, for syntax hl
binDists = {
platform_foo = { /* ... */ };
/* ... */
};
actual = binDists."${stdenv.system}" or (throw ("unsupported platform: ${stdenv.platform}"));
/* ... */
meta.platforms = attrNames binDists; This way, |
@@ -9,6 +9,8 @@ | |||
assert releaseType == "alpha" | |||
|| releaseType == "headless" | |||
|| releaseType == "demo"; | |||
assert stdenv.system == "x86_64-linux" |
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.
Why isn't this just using meta.platforms
? The derivation does appear to set meta.platforms
to only support x86_64-linux
too.
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.
I'm also not sure how an assertion that stdenv.system
is linux would work on Darwin...
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.
Oh, I see, sorry, I missed your intro paragraph. Nevermind!
Otherwise if you try to listing all available packages, you will get a hard error on platforms not supported by this package. Consequently the tarball job was broken.
Superceded by f9ea527. |
Motivation for this change
I've fixed this package to restrict to Linux.
In macOS with latest source tree (including #29038),
nix-env -qa
shows attribute 'x86_64-darwin' missing error.This error raise when reference binDists.x86_64-darwin of factorio package.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)