File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ effectiveStdenv.mkDerivation (
112
112
pname = "llama-cpp${ pnameSuffix } " ;
113
113
version = llamaVersion ;
114
114
115
- src = ../../. ;
115
+ src = lib . cleanSource ../../. ;
116
116
117
117
postPatch = ''
118
118
substituteInPlace ./ggml-metal.m \
Original file line number Diff line number Diff line change 18
18
outputs =
19
19
{ self , flake-parts , ... } @inputs :
20
20
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" ;
22
28
in
23
29
flake-parts . lib . mkFlake { inherit inputs ; }
24
30
You can’t perform that action at this time.
0 commit comments