Skip to content

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.

1 participant