repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
680cedd
parent
a41aad5
author
Eric Bower
date
2025-12-10 11:51:01 -0500 EST
fix: flake.nix only supports linux atm

`ghostty` does not support packaging nix on mac which I think means we will not be able to support it:

- https://github.com/ghostty-org/ghostty/blob/cf06417b7dfbd0daeb58a9143f9b6ee194cbce26/nix/package.nix#L49
- https://github.com/ghostty-org/ghostty#2824

When our flake tries to build on macOS, it pulls ghostty as a Zig dependency, and ghostty's build.zig calls into apple-sdk/build.zig which needs the Darwin SDK — but ghostty's Nix infrastructure hasn't set that up.
1 files changed,  +1, -1
M flake.nix
+1, -1
1@@ -10,7 +10,7 @@
2     let
3       flake-utils = zig2nix.inputs.flake-utils;
4     in
5-    (flake-utils.lib.eachDefaultSystem (
6+    (flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (
7       system:
8       let
9         env = zig2nix.outputs.zig-env.${system} {