diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index b6548e1bb..99a82f797 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -120,13 +120,14 @@ effectiveStdenv.mkDerivation (finalAttrs: { filter = name: type: let - any = builtins.any (x: x); - baseName = builtins.baseNameOf name; + noneOf = builtins.all (x: !x); + baseName = baseNameOf name; in - any [ - (lib.hasSuffix ".py" name) - (baseName == "README.md") - (baseName == "pyproject.toml") + noneOf [ + (lib.hasSuffix ".nix" name) # Ignore *.nix files when computing outPaths + (lib.hasSuffix ".md" name) # Ignore *.md changes whe computing outPaths + (lib.hasPrefix "." baseName) # Skip hidden files and directories + (baseName == "flake.lock") ]; src = lib.cleanSource ../../.; }; diff --git a/.devops/nix/scope.nix b/.devops/nix/scope.nix index 9d353f15d..9e846c5af 100644 --- a/.devops/nix/scope.nix +++ b/.devops/nix/scope.nix @@ -21,7 +21,6 @@ in lib.makeScope newScope (self: { inherit llamaVersion; - pp = python3.pkgs; gguf-py = self.callPackage ./package-gguf-py.nix { inherit buildPythonPackage