-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
isabelle: fix darwin build #348092
isabelle: fix darwin build #348092
Conversation
@ofborg build isabelle |
|
Are you building with the sandbox enabled? I'm already aware that this fails with it on (as does the I also figured out why it still builds in Hydra anyway: if #29087 is up-to-date, Hydra simply doesn't have sandboxing enabled on Darwin in the first place. Maybe CONTRIBUTING.md should be updated to clarify that it's only enabled on Linux? That's what made me think it was enabled on Darwin too. |
The changes to isabelle-sha1 were necessary due to NixOS#349555: it results in needing to pass `-syslibroot $SDKROOT` in addition to `-lSystem` when invoking ld64 directly. But a simpler solution was to use $CC instead, since it passes all those flags automatically, which is also how it's built upstream (their build script sets `LD="gcc"`).
5506c70
to
d7c4d4a
Compare
No, I don't use sandbox on darwin. |
Oh, my bad: I didn't realise that I think this was breaking due to #349555, which I've now pushed a fix for; do you want to try it again? |
|
It looks like the check for whether to include
procps
was backwards. I removed the duplicate Java dependency as well while I was at it.I moved
procps
intopropagatedBuildInputs
, since it's needed to check the number of cores every time Isabelle is run, and as such is needed to build any packages that depend on Isabelle (tlaps
). Would patching Isabelle to use the absolute path be preferable?I'm not sure whether or not this will build successfully in Hydra: it fails to build once I turn on the sandbox (I believe due to trying to access
/tmp/isabelle-
), but so does Isabelle 2023, and that built fine in Hydra.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.