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:
@@ -16,6 +16,7 @@
|
|||||||
inputs.flake-utils.lib.eachDefaultSystem (system:
|
inputs.flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgsHost = inputs.nixpkgs.legacyPackages.${system};
|
pkgsHost = inputs.nixpkgs.legacyPackages.${system};
|
||||||
|
pkgsHostStatic = pkgsHost.pkgsStatic;
|
||||||
|
|
||||||
# The Rust toolchain to use
|
# The Rust toolchain to use
|
||||||
toolchain = inputs.fenix.packages.${system}.fromToolchainFile {
|
toolchain = inputs.fenix.packages.${system}.fromToolchainFile {
|
||||||
@@ -43,6 +44,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
scopeHost = mkScope pkgsHost;
|
scopeHost = mkScope pkgsHost;
|
||||||
|
scopeHostStatic = mkScope pkgsHostStatic;
|
||||||
|
|
||||||
mkDevShell = scope: scope.pkgs.mkShell {
|
mkDevShell = scope: scope.pkgs.mkShell {
|
||||||
env = scope.main.env // {
|
env = scope.main.env // {
|
||||||
@@ -185,6 +187,6 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
devShells.default = mkDevShell scopeHost;
|
devShells.default = mkDevShell scopeHostStatic;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user