109 Commits

Author SHA1 Message Date
Chris Marchesi
2671215211 nix: fix package build
This fixes the Nix *package* build (read: not devShell, which is not
touched) so that it builds, and also conforms to what is generally seen
for a Zig project in nixpkgs.

The highlights:

* We use a Zig 0.12 derivation that I constructed from the Zig 0.11
  derivation, in addition to LLVM 17 updates found in
  NixOS/nixpkgs#258614. This specifically includes the patches that
  address ziglang/zig#15898, and also allows us to take advantage of the
  build hooks included in the Zig toolchain there.

* We pre-download the cache using "zig build --fetch" and a fixed-output
  derivation. This is similar to how the Go builders work in nixpkgs and
  I could see Zig ultimately going in a similar path, given that the
  fetcher part of the build system seems to be shaping up to having a Go
  module system-style DX (mind you, this is a naive opinion right now).

* Finally, cleaned up the derivation so that there's no special fixups
  happening outside of what is defined in the basic nixpkgs workflow.
  This is similar to other Zig projects I looked at (notably River) that
  seem to just include their dependencies in buildInputs and call it a
  day.

One specific change that is worth noting is that this changes the build
mode from ReleaseFast to ReleaseSafe - this is the current default
within the Zig build hook in nixpkgs. If we need ReleaseFast, we'll have
to override this.
2023-11-19 14:21:34 -08:00
Mitchell Hashimoto
d3f3d10b2f update zig 2023-11-14 09:01:37 -08:00
Mitchell Hashimoto
1b7786a3e3 update zig 2023-11-04 17:04:24 -07:00
Mitchell Hashimoto
ce05c78804 update zig 2023-10-31 09:44:09 -07:00
Thorsten Ball
0b0f199955 nix: update ZLS to newest version 2023-10-28 09:03:32 +02:00
Mitchell Hashimoto
b146f95402 update zig 2023-10-26 10:42:33 -07:00
Mitchell Hashimoto
7a1c54ad05 update zig 2023-10-24 15:02:26 -07:00
Mitchell Hashimoto
113204399e update zig 2023-10-21 21:34:59 -07:00
Mitchell Hashimoto
d4a67c2466 update zig 2023-10-21 15:52:40 -07:00
Mitchell Hashimoto
8f46d114c0 update zig 2023-10-17 12:45:35 -07:00
Mitchell Hashimoto
4750a92bb4 update zig 2023-10-07 08:24:25 -07:00
Mitchell Hashimoto
2b28106837 update zig 2023-10-02 08:18:35 -07:00
Mitchell Hashimoto
9e6cb63a1e update zig 2023-10-01 09:11:57 -07:00
Mitchell Hashimoto
7c440dea5e update zig 2023-09-28 15:30:51 -07:00
Mitchell Hashimoto
695c50a73a update zig 2023-09-27 08:11:59 -07:00
Mitchell Hashimoto
e644be3b25 update zig to 0.12.0-dev.464+a63a1c5cb 2023-09-21 11:03:34 -07:00
Thorsten Ball
d86de34cf1 nix: add latest version of zls to flake.nix
I know not everybody uses ZLS (or LSPs in general) but I think it's very
useful and it's very handy to have it in the `flake.nix` to keep it up
to date with the `zig` version.

As with a lot of my PRs in this project, please consider the following a
disclaimer: I have 0 clue what I'm doing here and if there's a better
way to do what I'm trying to do, let me know!
2023-09-09 15:18:05 +02:00
Mitchell Hashimoto
375a4569f7 update zig 2023-09-03 08:21:21 -07:00
Mitchell Hashimoto
ab9f86cd23 update zig 2023-08-24 09:52:31 -07:00
Mitchell Hashimoto
936befa1af update to 0.12.0-dev.141+ddf5859c2 2023-08-20 09:04:42 -07:00
Mitchell Hashimoto
2df7789f3e update to nix 23.05 2023-08-13 11:53:23 -07:00
Mitchell Hashimoto
a295d1e872 revert back to nix 22.11, see comment 2023-08-08 10:32:49 -07:00
Mitchell Hashimoto
c2137360f4 update nix to 23.05 (#250)
* update nix to 23.05

* nix: do not install gdb on macos
2023-08-08 09:01:47 -07:00
Mitchell Hashimoto
a348adf26b build: dynamic link first (mode_first) 2023-08-07 10:49:50 -07:00
Mitchell Hashimoto
d649b3f6d4 update zig 2023-08-02 14:39:19 -07:00
Mitchell Hashimoto
4b3b42bc54 update zig 2023-07-28 10:22:58 -07:00
Mitchell Hashimoto
57cd4ec4ca update zig 2023-07-20 18:49:29 -07:00
Mitchell Hashimoto
6faa7c195b Revert "update zig"
This reverts commit 11939915cd7345b353306ed14449bbb0be0c42e3.
2023-07-20 17:57:30 -07:00
Mitchell Hashimoto
11939915cd update zig 2023-07-20 17:50:23 -07:00
Mitchell Hashimoto
1aec2f2ca5 update zig version 2023-07-18 10:59:09 -07:00
Mitchell Hashimoto
020772f777 update zig 2023-07-09 10:38:41 -07:00
Mitchell Hashimoto
0b5ff8f311 update zig 2023-07-04 13:07:17 -07:00
Mitchell Hashimoto
c9f486be9b Revert "update nix to 23.05"
This reverts commit fe657648325df2c7645aca762279fdcc30296948.
2023-07-03 14:51:08 -07:00
Mitchell Hashimoto
fe65764832 update nix to 23.05 2023-07-03 14:36:46 -07:00
Mitchell Hashimoto
314f9287b1 Update Zig (#164)
* update zig

* pkg/fontconfig: clean up @as

* pkg/freetype,harfbuzz: clean up @as

* pkg/imgui: clean up @as

* pkg/macos: clean up @as

* pkg/pixman,utf8proc: clean up @as

* clean up @as

* lots more @as cleanup

* undo flatpak changes

* clean up @as
2023-06-30 12:15:31 -07:00
Mitchell Hashimoto
56f8e39e5b Update zig, mach, fmt 2023-06-25 11:08:20 -07:00
Mitchell Hashimoto
8aaee518fd update zig version 2023-06-16 17:03:46 -07:00
Mitchell Hashimoto
498cd7df7c update zig 2023-05-31 15:26:01 -07:00
Mitchell Hashimoto
7116ce0806 update zig version 2023-05-29 08:24:12 -07:00
Mitchell Hashimoto
80402b655c update zig 2023-05-25 21:47:05 -07:00
Mitchell Hashimoto
97d9157d22 update zig version 2023-05-07 20:50:51 -07:00
Mitchell Hashimoto
e2dc12cd6d update zig version 2023-04-06 09:09:23 -07:00
Mitchell Hashimoto
920200fa04 update zig 2023-04-04 13:43:33 -07:00
Mitchell Hashimoto
5dc98da9a0 build compiles at least 2023-03-24 19:39:50 -07:00
Mitchell Hashimoto
fa55d7088e update Zig version 2023-03-10 22:20:29 -08:00
Mitchell Hashimoto
ce86c64b42 update zig, src for loops 2023-02-27 21:46:42 -08:00
Mitchell Hashimoto
f998341492 update zig 2023-02-19 21:19:17 -08:00
Mitchell Hashimoto
ec19c178a1 update zig version 2023-02-14 17:45:41 -08:00
Mitchell Hashimoto
414201abf9 update zig 2023-01-26 08:52:46 -08:00
Mitchell Hashimoto
e253d12a7d update zig 2022-12-28 20:23:53 -08:00