rustPlatform.buildRustPackage: remove unused function

This commit is contained in:
figsoda 2022-09-26 21:53:37 -04:00
parent e42908eeaf
commit dc19b95eff

View file

@ -72,10 +72,6 @@ let
sha256 = args.cargoSha256;
} // depsExtraArgs);
# If we have a cargoSha256 fixed-output derivation, validate it at build time
# against the src fixed-output derivation to check consistency.
validateCargoDeps = args ? cargoHash || args ? cargoSha256;
target = rust.toRustTargetSpec stdenv.hostPlatform;
targetIsJSON = lib.hasSuffix ".json" target;
useSysroot = targetIsJSON && !__internal_dontAddSysroot;