switch default devshell to static linking
Dynamically-linked jemalloc doesn't work due to link-order issues, and we want CI to be testing a static binary anyway since that's what we're publishing in releases.
This commit is contained in:
parent
4e6fc2f2df
commit
0fd0a5d73c
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
inputs.flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgsHost = inputs.nixpkgs.legacyPackages.${system};
|
||||
pkgsHostStatic = pkgsHost.pkgsStatic;
|
||||
|
||||
# The Rust toolchain to use
|
||||
toolchain = inputs.fenix.packages.${system}.fromToolchainFile {
|
||||
|
@ -43,6 +44,7 @@
|
|||
});
|
||||
|
||||
scopeHost = mkScope pkgsHost;
|
||||
scopeHostStatic = mkScope pkgsHostStatic;
|
||||
|
||||
mkDevShell = scope: scope.pkgs.mkShell {
|
||||
env = scope.main.env // {
|
||||
|
@ -185,6 +187,6 @@
|
|||
)
|
||||
);
|
||||
|
||||
devShells.default = mkDevShell scopeHost;
|
||||
devShells.default = mkDevShell scopeHostStatic;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue