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:
Benjamin Lee 2024-05-23 15:50:41 -07:00 committed by June 🍓🦴
parent 4e6fc2f2df
commit 0fd0a5d73c

View file

@ -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;
}); });
} }