nix: clean sources more thoroughly
...this way outPaths change less frequently, and so there are fewer rebuilds
This commit is contained in:
parent
1efbc6b064
commit
82e48e2567
1 changed files with 10 additions and 1 deletions
|
@ -112,7 +112,16 @@ effectiveStdenv.mkDerivation (
|
||||||
pname = "llama-cpp${pnameSuffix}";
|
pname = "llama-cpp${pnameSuffix}";
|
||||||
version = llamaVersion;
|
version = llamaVersion;
|
||||||
|
|
||||||
src = lib.cleanSource ../../.;
|
src = lib.cleanSourceWith {
|
||||||
|
filter =
|
||||||
|
name: type:
|
||||||
|
!(builtins.any (_: _) [
|
||||||
|
(lib.hasSuffix ".nix" name) # Ignore *.nix files when computing outPaths
|
||||||
|
(name == "README.md") # Ignore *.md changes whe computing outPaths
|
||||||
|
(lib.hasPrefix "." name) # Skip hidden files and directories
|
||||||
|
]);
|
||||||
|
src = lib.cleanSource ../../.;
|
||||||
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace ./ggml-metal.m \
|
substituteInPlace ./ggml-metal.m \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue