nix: fewer rebuilds
This commit is contained in:
parent
dd0e12c741
commit
4522c47a22
2 changed files with 8 additions and 2 deletions
|
@ -112,7 +112,7 @@ effectiveStdenv.mkDerivation (
|
||||||
pname = "llama-cpp${pnameSuffix}";
|
pname = "llama-cpp${pnameSuffix}";
|
||||||
version = llamaVersion;
|
version = llamaVersion;
|
||||||
|
|
||||||
src = ../../.;
|
src = lib.cleanSource ../../.;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace ./ggml-metal.m \
|
substituteInPlace ./ggml-metal.m \
|
||||||
|
|
|
@ -18,7 +18,13 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ self, flake-parts, ... }@inputs:
|
{ self, flake-parts, ... }@inputs:
|
||||||
let
|
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
|
in
|
||||||
flake-parts.lib.mkFlake { inherit inputs; }
|
flake-parts.lib.mkFlake { inherit inputs; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue