don't bother with mold
For now, at least. I suspect it will make cross compilation more difficult.
This commit is contained in:
parent
5cc53c9e14
commit
249fc7769d
1 changed files with 2 additions and 9 deletions
11
flake.nix
11
flake.nix
|
@ -28,12 +28,6 @@
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
# Use mold on Linux
|
|
||||||
stdenv = if pkgs.stdenv.isLinux then
|
|
||||||
pkgs.stdenvAdapters.useMoldLinker pkgs.stdenv
|
|
||||||
else
|
|
||||||
pkgs.stdenv;
|
|
||||||
|
|
||||||
# Nix-accessible `Cargo.toml`
|
# Nix-accessible `Cargo.toml`
|
||||||
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
|
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
|
||||||
|
|
||||||
|
@ -91,8 +85,7 @@
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
env
|
env
|
||||||
nativeBuildInputs
|
nativeBuildInputs;
|
||||||
stdenv;
|
|
||||||
|
|
||||||
meta.mainProgram = cargoToml.package.name;
|
meta.mainProgram = cargoToml.package.name;
|
||||||
};
|
};
|
||||||
|
@ -117,7 +110,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = (pkgs.mkShell.override { inherit stdenv; }) {
|
devShells.default = pkgs.mkShell {
|
||||||
env = env // {
|
env = env // {
|
||||||
# Rust Analyzer needs to be able to find the path to default crate
|
# Rust Analyzer needs to be able to find the path to default crate
|
||||||
# sources, and it can read this environment variable to do so. The
|
# sources, and it can read this environment variable to do so. The
|
||||||
|
|
Loading…
Add table
Reference in a new issue