diff --git a/pkgs/build-support/rust/build-rust-package/default.nix b/pkgs/build-support/rust/build-rust-package/default.nix index b98fb69b40d9..a3f0845eae5e 100644 --- a/pkgs/build-support/rust/build-rust-package/default.nix +++ b/pkgs/build-support/rust/build-rust-package/default.nix @@ -4,7 +4,6 @@ fetchCargoTarball, fetchCargoVendor, stdenv, - callPackage, cargoBuildHook, cargoCheckHook, cargoInstallHook, @@ -127,9 +126,6 @@ lib.extendMkDerivation { } // depsExtraArgs ); - - target = stdenv.hostPlatform.rust.rustcTargetSpec; - targetIsJSON = lib.hasSuffix ".json" target; in lib.optionalAttrs (stdenv.hostPlatform.isDarwin && buildType == "debug") { RUSTFLAGS = "-C split-debuginfo=packed " + (args.RUSTFLAGS or "");