Skip to content

Commit

Permalink
Remove deprecated toRustTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem committed Oct 8, 2024
1 parent 5fd6a14 commit c558e5b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
mkRust =
let
inherit (pkgs.stdenv) hostPlatform;
inherit (pkgs.rust) toRustTarget;
in
{ rustProfile ? "minimal"
, rustExtensions ? [
Expand All @@ -113,8 +112,8 @@
"clippy"
]
, channel ? "stable"
, targets ? [ (toRustTarget hostPlatform) ]
++ pkgs.lib.optional (!hostPlatform.isMacOS) (toRustTarget pkgs.pkgsMusl.stdenv.hostPlatform)
, targets ? [ pkgs.stdenv.hostPlatform.rust.rustcTarget ]
++ pkgs.lib.optional (!hostPlatform.isMacOS) pkgs.pkgsMusl.stdenv.hostPlatform.rust.rustcTarget
}:
if channel == "nightly" then
pkgs.rust-bin.selectLatestNightlyWith
Expand Down Expand Up @@ -422,7 +421,7 @@
pnameSuffix = "-static";
extraArgs = {
inherit env;
CARGO_BUILD_TARGET = pkgs.rust.toRustTarget pkgs.pkgsMusl.stdenv.hostPlatform;
CARGO_BUILD_TARGET = pkgs.pkgsMusl.stdenv.hostPlatform.rust.rustcTarget;
# For some reason, the rust build doesn't pick up the paths
# to `libcxx`. So we specify them explicitly.
#
Expand Down

0 comments on commit c558e5b

Please sign in to comment.