diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index c54a7c3c6..2d0099457 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -112,7 +112,16 @@ effectiveStdenv.mkDerivation ( pname = "llama-cpp${pnameSuffix}"; 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 = '' substituteInPlace ./ggml-metal.m \