summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 616b9025..d454cedc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,6 +21,12 @@
CoreGraphics
CoreVideo
]
+ else if isDarwin then
+ with pkgs.darwin.apple_sdk.frameworks; [
+ Accelerate
+ CoreGraphics
+ CoreVideo
+ ]
else
with pkgs; [ openblas ]
);
@@ -80,8 +86,13 @@
type = "app";
program = "${self.packages.${system}.default}/bin/llama";
};
+ apps.quantize = {
+ type = "app";
+ program = "${self.packages.${system}.default}/bin/quantize";
+ };
apps.default = self.apps.${system}.llama;
devShells.default = pkgs.mkShell {
+ buildInputs = [ llama-python ];
packages = nativeBuildInputs ++ osSpecific;
};
});