Skip to content

Add zig passthru - #78

Merged
mitchellh merged 1 commit into
mitchellh:mainfrom
RossComputerGuy:fix/missing-attrs
Feb 17, 2026
Merged

mitchellh merged 1 commit into
mitchellh:mainfrom
RossComputerGuy:fix/missing-attrs

Conversation

@RossComputerGuy

Copy link
Copy Markdown
Contributor

Adds the zig passthru stuff so this is more usable compared to zig in nixpkgs.

Comment thread default.nix Outdated
@mitchellh

Copy link
Copy Markdown
Owner

Sorry for the delay. Is this still required? If so, can you rebase? Thanks.

@RossComputerGuy

Copy link
Copy Markdown
Contributor Author

This is still useful, I just rebased this PR. Plus I modified meta.platforms to now report more accurately what the platforms are based on what's available.

@mitchellh
mitchellh merged commit 1f258cf into mitchellh:main Feb 17, 2026
1 check passed
@RossComputerGuy
RossComputerGuy deleted the fix/missing-attrs branch February 17, 2026 03:48
@vkcku

vkcku commented Feb 17, 2026

Copy link
Copy Markdown

This change results in the error:

      error: function 'anonymous lambda' called with unexpected argument 'lib'
       at /nix/store/yjrjf262crysn53sscr28aiyi494jqvk-29nxw96bzvbq1iygh54jh2cxjggx2php-source/pkgs/development/compilers/zig/passthru.nix:1:1:
            1| {
             | ^
            2|   stdenv,

See https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/zig/passthru.nix.

@RossComputerGuy

Copy link
Copy Markdown
Contributor Author

Huh, it loaded fine in nix repl for me.

@vkcku

vkcku commented Feb 17, 2026

Copy link
Copy Markdown

Maybe an outdated nixpkgs?? It seems to have been removed in NixOS/nixpkgs@1dfa285#diff-37379ceca82f918f0f7e0c7585a136b2501b01f90b92124944641c5d0a6922ed.

@RossComputerGuy
RossComputerGuy restored the fix/missing-attrs branch February 17, 2026 18:22
@RossComputerGuy

Copy link
Copy Markdown
Contributor Author

I've readded it in #93, I was going to fix it last night but didn't have the time.

@RossComputerGuy
RossComputerGuy deleted the fix/missing-attrs branch February 17, 2026 18:26
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.

4 participants