Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

allow pure build of zig derivation#135

Open
oldaccountdeadname wants to merge 1 commit intoXe:master from
oldaccountdeadname:master
Open

allow pure build of zig derivation #135
oldaccountdeadname wants to merge 1 commit intoXe:master from
oldaccountdeadname:master

Conversation

@oldaccountdeadname
Copy link

@oldaccountdeadname oldaccountdeadname commented Nov 26, 2021
edited by Xe
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /