nixExperimental: init

master
DavHau 2021-05-04 18:15:27 +07:00
parent f94876e77b
commit 8865881319
3 changed files with 20 additions and 1 deletions

View File

@ -227,6 +227,10 @@ in rec {
inherit storeDir stateDir confDir boehmgc;
});
nixExperimental = nixUnstable.overrideAttrs (prev: {
patches = (prev.patches or []) ++ [ ./enable-all-experimental.patch ];
});
nixFlakes = nixUnstable.overrideAttrs (prev: {
patches = (prev.patches or []) ++ [ ./enable-flakes.patch ];
});

View File

@ -0,0 +1,14 @@
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index d3b27d7be..e7d002e1d 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -172,8 +172,7 @@ MissingExperimentalFeature::MissingExperimentalFeature(std::string feature)
void Settings::requireExperimentalFeature(const std::string & name)
{
- if (!isExperimentalFeatureEnabled(name))
- throw MissingExperimentalFeature(name);
+ return;
}
bool Settings::isWSL1()

View File

@ -30099,7 +30099,8 @@ in
nix
nixStable
nixUnstable
nixFlakes;
nixFlakes
nixExperimental;
nixStatic = pkgsStatic.nix;