Skip to content
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

allow pure build of zig derivation #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oldaccountdeadname
Copy link

@oldaccountdeadname oldaccountdeadname commented Nov 26, 2021

Just one commit, here's the message:

allow pure build of zig derivation

Prior to this commit, if nixpkgs was imported with a definite system, it
would *mostly* work as intended and not make impure calls to Nix's
builtins.CurrentSystem, except for here in zig_raw.nix, which doesn't
respect sources and pkgs. The solution is simple: just inherit sources
and pkgs when we make a versioned zig_raw in zig.nix.

I've tested that this successfully builds and that tests run, so I don't think this should cause any problems!


This change is Reviewable

Prior to this commit, if nixpkgs was imported with a definite system, it
would *mostly* work as intended and not make impure calls to Nix's
builtins.CurrentSystem, except for here in zig_raw.nix, which doesn't
respect sources and pkgs. The solution is simple: just inherit sources
and pkgs when we make a versioned zig_raw in zig.nix.
oldaccountdeadname added a commit to oldaccountdeadname/pahi that referenced this pull request Nov 26, 2021
This consists of two changes:
1. Use rustChannelOf instead of rustChannelOfTargets to supply a sha256
   (required for pure eval)
2. Inherit pkgs in olin. Olin is *almost* pure, pending Xe/olin#135.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant