Skip to content

Commit

Permalink
Clean up flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Dec 27, 2024
1 parent 689358a commit 87e12a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
darwin.apple_sdk.frameworks.Foundation
]);

sysroot = pkgs.lib.optionals pkgs.stdenv.isDarwin "--sysroot $SDKROOT";

packages.default = packages.zacho;
packages.zacho = pkgs.stdenv.mkDerivation {
name = "zacho";
Expand All @@ -55,7 +57,7 @@
doCheck = false;
buildPhase = ''
mkdir -p .cache
zig build install --sysroot ${pkgs.darwin.apple_sdk} -Doptimize=ReleaseSafe --prefix $out --cache-dir $(pwd)/.zig-cache --global-cache-dir $(pwd)/.cache
zig build install ${sysroot} -Doptimize=ReleaseSafe --prefix $out --cache-dir $(pwd)/.zig-cache --global-cache-dir $(pwd)/.cache
'';
};

Expand Down

0 comments on commit 87e12a5

Please sign in to comment.