diff --git a/flake.nix b/flake.nix index 58376760b..71f62704a 100644 --- a/flake.nix +++ b/flake.nix @@ -320,18 +320,12 @@ }; let canRunInstalled = currentStdenv.buildPlatform.canExecute currentStdenv.hostPlatform; - - sourceByRegexInverted = rxs: origSrc: final.lib.cleanSourceWith { - filter = (path: type: - let relPath = final.lib.removePrefix (toString origSrc + "/") (toString path); - in ! lib.any (re: builtins.match re relPath != null) rxs); - src = origSrc; - }; in currentStdenv.mkDerivation (finalAttrs: { name = "nix-${version}"; inherit version; - src = sourceByRegexInverted [ "tests/nixos/.*" "tests/installer/.*" ] self; + src = self; + VERSION_SUFFIX = versionSuffix; outputs = [ "out" "dev" "doc" ];