mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Revert "Filter tests/nixos from source"
This reverts commit 80f9231b69
because
it causes a divergence in the source tree used for the Nix build
between hydra.nixos.org and Nix.
This commit is contained in:
parent
d7bedc60f9
commit
d2932ad0be
1 changed files with 2 additions and 8 deletions
10
flake.nix
10
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" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue