nix: dont include experimental feature on all-features builds

this is just future infra for it

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-07-13 16:09:24 -04:00
parent 7009f56a7a
commit a1bfd7a018

View file

@ -122,8 +122,12 @@
default = scopeHost.main; default = scopeHost.main;
all-features = scopeHost.main.override { all-features = scopeHost.main.override {
all_features = true; all_features = true;
# this is non-functional on nix for some reason disable_features = [
disable_features = ["hardened_malloc"]; # this is non-functional on nix for some reason
"hardened_malloc"
# dont include experimental features
"experimental"
];
}; };
hmalloc = scopeHost.main.override { features = ["hardened_malloc"]; }; hmalloc = scopeHost.main.override { features = ["hardened_malloc"]; };
@ -131,8 +135,12 @@
oci-image-all-features = scopeHost.oci-image.override { oci-image-all-features = scopeHost.oci-image.override {
main = scopeHost.main.override { main = scopeHost.main.override {
all_features = true; all_features = true;
# this is non-functional on nix for some reason disable_features = [
disable_features = ["hardened_malloc"]; # this is non-functional on nix for some reason
"hardened_malloc"
# dont include experimental features
"experimental"
];
}; };
}; };
oci-image-hmalloc = scopeHost.oci-image.override { oci-image-hmalloc = scopeHost.oci-image.override {
@ -174,8 +182,12 @@
name = "${binaryName}-all-features"; name = "${binaryName}-all-features";
value = scopeCrossStatic.main.override { value = scopeCrossStatic.main.override {
all_features = true; all_features = true;
# this is non-functional on nix for some reason disable_features = [
disable_features = ["hardened_malloc"]; # this is non-functional on nix for some reason
"hardened_malloc"
# dont include experimental features
"experimental"
];
}; };
} }
@ -199,8 +211,12 @@
value = scopeCrossStatic.oci-image.override { value = scopeCrossStatic.oci-image.override {
main = scopeCrossStatic.main.override { main = scopeCrossStatic.main.override {
all_features = true; all_features = true;
# this is non-functional on nix for some reason disable_features = [
disable_features = ["hardened_malloc"]; # this is non-functional on nix for some reason
"hardened_malloc"
# dont include experimental features
"experimental"
];
}; };
}; };
} }
@ -228,8 +244,12 @@
(scopeHostStatic.overrideScope (final: prev: { (scopeHostStatic.overrideScope (final: prev: {
main = prev.main.override { main = prev.main.override {
all_features = true; all_features = true;
# this is non-functional on nix for some reason disable_features = [
disable_features = ["hardened_malloc"]; # this is non-functional on nix for some reason
"hardened_malloc"
# dont include experimental features
"experimental"
];
}; };
})); }));
devShells.no-features = mkDevShell devShells.no-features = mkDevShell