123 Commits

Author SHA1 Message Date
Mitchell Hashimoto
c1bde28af4 update flake 2024-01-07 12:03:23 -08:00
Chris Marchesi
2e3c1bf9da nix: update nixpkgs-zig-0-12
This updates the nixpkgs-zig-0-12 input to be in line with the current
Zig in use by the overlay (0.12.0-dev.1830+779b8e259).
2023-12-22 12:32:43 -08:00
Thorsten Ball
d6d659d824 nix: update ZLS
Just keeping up with Zig.
2023-12-20 06:20:06 +01:00
Mitchell Hashimoto
482a53b72f update zig 2023-12-19 14:33:35 -08:00
Chris Marchesi
42c307ef2a nix: Update nixpkgs-zig-0-12 source
With the nixpkgs LLVM 17 PR (NixOS/nixpkgs#258614) now merged, we can
update this flake input to base off of master so that we can take
advantage of the built LLVM derivation when it's ready.

This only leaves Zig 0.12 which should mean a much reduced build time.

Note that of this writing, the derivations are still queued, so until
that happens, this update means a rebuild of LLVM 17 for anyone using
the ghostty package.
2023-12-08 14:51:04 -08:00
Mitchell Hashimoto
24c64d4b44 nix: make devshell platform-specific 2023-12-08 07:58:52 -08:00
RGBCube
5846d991e9 Add garnix cache and clean up all nix code 2023-12-08 16:52:58 +03:00
Mitchell Hashimoto
53c23b7245 update zig 2023-12-06 22:12:36 -08:00
Thorsten Ball
7b70df3952 nix: update ZLS 2023-12-07 06:28:51 +01:00
Chris Marchesi
dae92039c7 nix: update nixpkgs-zig-0-12
Just updates the input so that we're on the same Zig nightly as
zig-overlay (#983).
2023-12-02 19:52:22 -08:00
Mitchell Hashimoto
8507459e65 update zig version 2023-12-02 12:14:24 -08:00
Chris Marchesi
f1bb1ab6c9 nix: update flake.lock for nixpkgs-zig-0-12
This updates the lockfile for nixpkgs-zig-0-12 so that the latest zig is
used for building the nix package.

Note that as per history on this topic, this currently only affects the
nix package (packages.ghostty), not the devShell.
2023-12-01 11:05:34 -08:00
Mitchell Hashimoto
8f5f8fb0bd update Zig version in Nix 2023-11-30 14:06:24 -08:00
Mitchell Hashimoto
4b6dfd0042 update zig 2023-11-20 12:28:18 -08:00
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