Skip to content

Commit 4522c47

Browse files
committed
nix: fewer rebuilds
1 parent dd0e12c commit 4522c47

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.devops/nix/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ effectiveStdenv.mkDerivation (
112112
pname = "llama-cpp${pnameSuffix}";
113113
version = llamaVersion;
114114

115-
src = ../../.;
115+
src = lib.cleanSource ../../.;
116116

117117
postPatch = ''
118118
substituteInPlace ./ggml-metal.m \

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
outputs =
1919
{ self, flake-parts, ... }@inputs:
2020
let
21-
llamaVersion = self.dirtyShortRev or self.shortRev;
21+
# We could include the git revisions in the package names but those would
22+
# needlessly trigger rebuilds:
23+
# llamaVersion = self.dirtyShortRev or self.shortRev;
24+
25+
# Nix already uses cryptographic hashes for versioning, so we'll just fix
26+
# the fake semver for now:
27+
llamaVersion = "0.0.0";
2228
in
2329
flake-parts.lib.mkFlake { inherit inputs; }
2430

0 commit comments

Comments
 (0)