diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index 0e10ba61e..3222ec469 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -112,7 +112,7 @@ effectiveStdenv.mkDerivation ( pname = "llama-cpp${pnameSuffix}"; version = llamaVersion; - src = ../../.; + src = lib.cleanSource ../../.; postPatch = '' substituteInPlace ./ggml-metal.m \ diff --git a/flake.nix b/flake.nix index 7c7440fc9..3575cbf12 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,13 @@ outputs = { self, flake-parts, ... }@inputs: let - llamaVersion = self.dirtyShortRev or self.shortRev; + # We could include the git revisions in the package names but those would + # needlessly trigger rebuilds: + # llamaVersion = self.dirtyShortRev or self.shortRev; + + # Nix already uses cryptographic hashes for versioning, so we'll just fix + # the fake semver for now: + llamaVersion = "0.0.0"; in flake-parts.lib.mkFlake { inherit inputs; }