-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Test Nix functionality #1238
Test Nix functionality #1238
Conversation
40d3d1e
to
24b9c45
Compare
24b9c45
to
f48bbaa
Compare
@doronbehar This error has be baffled. The
|
No idea at all.. Perhaps it would help to print the Nixpkgs revision used, as explained in here: https://github.com/cachix/install-nix-action/#how-do-i-print-nixpkgs-version-i-have-configured And perhaps we can print similar stuff to debug why it evaluates as broken: - name: Print whether nixpkgs' stdenv is darwin
run: nix-instantiate --eval -E '(import <nixpkgs> {}).stdenv.isDarwin' This might work and help: - name: Evaluate nixpkgs' sile.meta
run: nix eval --json nixpkgs#sile.meta I also noticed you didn't specify a nix channel with |
I'd try also: - name: Evaluate nixpkgs' sile.meta
run: nix eval --json .#sile.meta when Inside the repository. |
Thanks for the ideas. You can see the output of the debug info requested in this test run.
I tried it with and without, it just happened to end on "without". It's back, but that isn't the (only?) problem. Everything else looks as expected, including isDarwin being falsey. |
I found it, we just had to RTFM:
It failed because it evaluated the derivation for all systems. You have a few options:
|
Thanks for the research! Is there a definitive list of supported systems we can use and just subtract Darwin? |
I found the exact opposite of what I was looking for: flake-utils.lib.eachSystem (
flake-utils.lib.defaultSystems ++ ["x86_64-darwin"]
) (system:
... What I need is a list subtraction instead of a list concatenation operator. |
|
I guess we can do that, but in general, what value do you see in |
I believe this attempted work was obsoleted by 0ae6771 and we've been test building the flake in CI since before tagging v0.13.0. |
As a follow up to #1231, setup a CI workflow to test that the Nix Flake and other features stay in working order.