buildRustPackage: remove dead codes

This commit is contained in:
Yueh-Shun Li
2025-02-23 04:55:52 +08:00
parent b212296a2e
commit ef987dba19
@@ -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 "");