add all-features devshell

Because the nix rocksdb build depends on the jemalloc feature, you need
to use a different devshell when passing --all-features to cargo than
the default.
This commit is contained in:
Benjamin Lee 2024-05-30 00:44:30 -07:00
parent 8f24ac1f27
commit fa48c48d52
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4
2 changed files with 19 additions and 3 deletions

View file

@ -23,6 +23,11 @@
oci-image = self.callPackage ./nix/pkgs/oci-image {};
# Return a new scope with overrides applied to the 'default' package
overrideDefaultPackage = args: self.overrideScope (final: prev: {
default = prev.default.override args;
});
shell = self.callPackage ./nix/shell.nix {};
# The Rust toolchain to use
@ -84,6 +89,9 @@
);
devShells.default = (mkScope pkgs).shell;
devShells.all-features = ((mkScope pkgs).overrideDefaultPackage {
all-features = true;
}).shell;
}
)
//