diff --git a/flake.nix b/flake.nix index d7dd9b9..3e5581f 100644 --- a/flake.nix +++ b/flake.nix @@ -31,19 +31,17 @@ pkgs.darwin.apple_sdk.frameworks.Foundation pkgs.darwin.apple_sdk.frameworks.Security ]; + + mkPkgArgs = { inherit self src; doCheck = false; }; in rec { - packages.default = crystal.mkPkg { - inherit self src; - doCheck = false; - }; + packages = { + default = crystal.mkPkg mkPkgArgs; - packages.static = crystalStatic.mkPkg { - inherit src self; - doCheck = false; - }; + ${if system == "x86_64-darwin" then null else "static"} = crystalStatic.mkPkg mkPkgArgs; - packages.check = pkgs.linkFarmFromDrvs "cb-all-checks" (builtins.attrValues checks); + check = pkgs.linkFarmFromDrvs "cb-all-checks" (builtins.attrValues checks); + }; devShells.default = pkgs.mkShell { buildInputs = with crunchy; [ crystal2nix ameba ]