Commit Graph

139 Commits

Author SHA1 Message Date
Jost Alemann
6635d957dc zig.fetchDeps: fix zig 0.16.0 builds
create some tmp dir in the zig cache to work around
https://codeberg.org/ziglang/zig/issues/31964 and
https://codeberg.org/ziglang/zig/issues/35264 affecting zig 0.16.0
2026-07-23 23:01:43 +02:00
Ethan Carter Edwards
f6797be0ba zig: add meta.donationPage
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-06-01 00:37:41 -07:00
Jost Alemann
1373ce18ab zig: set __structuredAttrs 2026-04-17 10:32:56 +02:00
Jost Alemann
bbbf018e74 zig: add zig_0_16
add zig version 0.16.0 as zig_0_16
2026-04-14 19:02:36 +02:00
Jared Baur
f8939f0d0c zig.fetchDeps: add opt-in option for fetching all deps 2026-03-31 20:51:57 -07:00
Yohann Boniface
e35287c73e maintainers: drop andrewrk (#486652) 2026-02-10 22:58:02 +00:00
Jared Baur
e20232eab6 zig: move ZIG_GLOBAL_CACHE_DIR setup to configurePhase
This allows users to put zig in their `mkShell` without ending up with a
ZIG_GLOBAL_CACHE_DIR value set that points back to a location that only
would exist in the sandbox.
2026-02-07 17:32:18 -08:00
Marcin Serwin
68e44b479f maintainers: drop andrewrk
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-03 20:19:10 +01:00
Fernando Rodrigues
3562403503 treewide: fetchFromGitea -> fetchFromCodeberg
Most packages that used fetchFromGitea fetch their sources from Codeberg, so might as well migrate them.

The following command was used for this treewide:
```fish
for i in (rg 'fetchFromGitea \{\n *domain = "codeberg.org";' --multiline --files-with-matches)
    sed -z 's/fetchFromGitea {\n *domain = "codeberg.org";/fetchFromCodeberg {/g' $i > $i.tmp && mv $i.tmp $i
    sed -i 's/fetchFromGitea/fetchFromCodeberg/g' $i
end
```

The following paths were manually edited:

* pkgs/by-name/xr/xrsh/package.nix
* pkgs/applications/networking/browsers/librewolf/src.nix
* pkgs/by-name/go/gotosocial/package.nix
* pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix

Co-authored-by: Gutyina Gergő <gutyina.gergo.2@gmail.com>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2026-01-31 21:08:16 +11:00
Jared Baur
1dfa285940 zig: use setupHook attribute on zig derivation
By moving the zig setup hook to the zig derivation itself, we allow for
zig to splice correctly with `callPackage`, meaning that the correct zig
can be pulled in during builds when zig is in `nativeBuildInputs` (for
example).

This change retains the `zig.hook` attribute for backward compatibility
by just pointing to the zig derivation. This also removes
`zig_default_flags`, since now the setup hook is not a derivation that
can be overridden. Overriding the build flags can now be done by setting
`dontSetZigDefaultFlags = true`.
2026-01-09 14:07:46 -08:00
Tristan Ross
419739acc9 zig.hook: allow for global build flag overrides (#444988) 2026-01-05 03:03:18 +00:00
Jost Alemann
3b685976b2 zig{-shell-completions}: source from codeberg
Zig has migrated from GitHub to Codeberg as described in this blog post:
https://ziglang.org/news/migrating-from-github-to-codeberg/
2025-11-27 10:44:20 +01:00
Patryk Sondej
fcafa71408 zig: remove unneeded dynamic-linker option 2025-11-10 00:23:09 +01:00
Patryk Sondej
a35e308a57 zig: fix performance issue 2025-11-10 00:23:07 +01:00
Sirio Balmelli
8fe447f8cc zig: 0.15.2 build no longer broken on x86_64-darwin
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2025-10-28 14:03:04 +01:00
Jost Alemann
f42908626b zig: 0.15.1 -> 0.15.2
Diff: https://github.com/ziglang/zig/compare/0.15.1...0.15.2

While this is mostly a bug fix release, there is at least one breaking
change (see:
https://zsf.zulipchat.com/#narrow/channel/454371-std/topic/.E2.9C.94.20is.20takeDelimiterExclusive.20broken.3F/with/544414196)
2025-10-13 22:48:34 +02:00
Tristan Ross
9909b59a10 zig.hook: respect parallelism from nix 2025-09-25 08:27:19 -07:00
Justin Restivo
2f7e7091a8 zig.hook: allow for global build flag overrides 2025-09-21 10:40:41 -04:00
Jost Alemann
bc725b12b2 zig: 0.14.1 -> 0.15.1
make zig use the latest release 0.15.1 / zig_0_15 by default
Release Notes: https://ziglang.org/download/0.15.1/release-notes.html
Diff: https://github.com/ziglang/zig/compare/0.14.1...0.15.1

Pinned existing packages that were not already pinned to zig_0_14 i.e. the previous default if they failed to build with zig_0_15

Dropped `backlight-auto` as it requires the already dropped zig_0_12 (see the comment in the meta section)
2025-09-07 23:08:10 +02:00
Fabián Heredia Montiel
971840c5e0 Merge remote-tracking branch 'origin/master' into staging-next 2025-08-20 23:30:45 -06:00
K900
c8327c225b Merge remote-tracking branch 'origin/master' into staging-next 2025-08-20 15:58:49 +03:00
Jared Baur
b1f7d15e1c zig_0_15: 0.15.0 -> 0.15.1 2025-08-20 00:12:42 -07:00
Jared Baur
986db21d44 zig_0_15: init at 0.15.0 2025-08-19 06:36:29 -07:00
Jared Baur
ac8bce6bc1 zig: remove unused arg 2025-08-19 06:36:27 -07:00
Fabián Heredia Montiel
0e9af74ced Merge remote-tracking branch 'origin/master' into staging-next 2025-08-18 22:43:58 -06:00
Emily
ba90f3c54c zig_0_12: drop 2025-08-18 06:50:56 +01:00
Tristan Ross
653ed6376f zig.cc: set main program 2025-07-28 00:04:24 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Tristan Ross
9a060b90c1 zig: add fetcher 2025-06-06 11:42:54 -07:00
Tristan Ross
bac3beb820 zig: move passthru into a separate file 2025-06-06 11:42:49 -07:00
Tristan Ross
17acc11187 zig: misc Darwin fixes (#389137) 2025-06-05 08:55:48 -07:00
Tristan Ross
4aadd44044 zig: fix cc and bintools 2025-05-30 18:12:26 -07:00
Jost Alemann
d9e4682fd4 zig: 0.14.0 -> 0.14.1
Diff: https://github.com/ziglang/zig/compare/0.14.0...0.14.1
Changelog: https://github.com/ziglang/zig/releases/tag/0.14.1
2025-05-24 10:53:31 +02:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Tristan Ross
2501c0561a zig.hook: do not print empty lines in build output (#400090) 2025-04-24 07:49:12 -07:00
Alexandru Tocar
8b64942df0 zig.hook: do not print empty lines in build output 2025-04-21 12:29:06 +02:00
Tristan Ross
d2e95d833d zig: drop 0.11, use ninja (#397597) 2025-04-19 11:35:03 -07:00
Alex James
82493b30a0 zig: remove SystemVersion.plist from Darwin __impureHostDeps
[The default Nix sandbox profile already allows access to
SystemVersion.plist][1]. Drop it from `__impureHostDeps` as this is
redundant.

[1]: cacab33f0d/src/libstore/unix/build/sandbox-defaults.sb (L39-L42)
2025-04-13 14:02:55 -05:00
Alex James
88ef9cf994 zig: unconditionally enable strictDeps
strictDeps works with Clang after #318226.
2025-04-13 14:02:55 -05:00
Tristan Ross
6b2f93bd85 zig_0_11: drop 2025-04-09 23:12:27 -07:00
Tristan Ross
8f517fbfb4 zig: use ninja 2025-04-09 22:34:52 -07:00
K900
f42e00d66e Merge remote-tracking branch 'origin/master' into staging-next 2025-04-08 10:29:26 +03:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
K900
b3146d4446 Merge remote-tracking branch 'origin/master' into staging-next 2025-04-07 21:21:10 +03:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Emily
61582c7043 lib/systems: use Darwin architecture names for config and uname
`aarch64-apple-darwin` no longer works with LLVM 20.
2025-04-02 21:22:47 +01:00
Jörg Thalheim
4f7495cac2 zig_0_11: mark as broken
See this error:

The following command exited with code 1:
/build/source/build/stage3/bin/zig test
docgen_tmp/test_noreturn_from_exit.zig -target x86_64-windows
--test-no-exec
../doc/langref.html.in:5198:25: error: test failed
      {#target_windows#}

Generating docgen examples [1872/5411] error: ParseError
/build/source/tools/docgen.zig:1864:17: 0x2a4c5f in exec (docgen)
                return error.ChildExitError;
                ^
/build/source/tools/docgen.zig:289:5: 0x2c023e in parseError__anon_6779
(docgen)
    return error.ParseError;
    ^
/build/source/tools/docgen.zig:1585:29: 0x2b7d4d in genHtml__anon_4842
(docgen)
                            return parseError(tokenizer,
code.source_token, "test failed", .{});
                            ^
/build/source/tools/docgen.zig:106:5: 0x2c44b8 in main (docgen)
    try genHtml(allocator, &tokenizer, &toc, buffered_writer.writer(),
zig_exe, opt_zig_lib_dir, do_code_tests);
    ^
2025-03-31 21:49:07 +02:00
Tristan Ross
96c2125a8c zig: 0.13 -> 0.14 2025-03-04 19:11:04 -08:00
Niklas Korz
90cf03cc56 zig: refactor system env substitution 2025-02-06 16:26:33 +01:00
Niklas Korz
0ae3ecb356 zig: fix darwin SDK lookup 2025-02-06 16:26:33 +01:00