From ef987dba19b88e589718eb99c78a5e59e4e85967 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 23 Feb 2025 04:54:06 +0800 Subject: [PATCH] buildRustPackage: remove dead codes --- pkgs/build-support/rust/build-rust-package/default.nix | 4 ---- 1 file changed, 4 deletions(-) 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 "");