diff options
author | figsoda <figsoda@pm.me> | 2021-10-19 19:59:28 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-10-19 20:11:28 -0400 |
commit | 836e6d3e021b56c84de76ff32f751ca4ea994079 (patch) | |
tree | a98040b9e34716e4b87dfab8923cc5100dc69966 /pkgs/build-support | |
parent | 05344c478586e38a5abd20fbe035a4f1ed4e5b36 (diff) |
buildRustPackage: remove unused arguments, minor styling changes
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/rust/default.nix | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index 2eb45bcafa131..840abb2d918a3 100644 --- a/pkgs/build-support/rust/default.nix +++ b/pkgs/build-support/rust/default.nix @@ -1,17 +1,15 @@ -{ stdenv -, lib -, buildPackages +{ lib +, importCargoLock +, fetchCargoTarball +, rust +, stdenv +, callPackage , cacert +, git , cargoBuildHook , cargoCheckHook , cargoInstallHook , cargoSetupHook -, fetchCargoTarball -, importCargoLock -, rustPlatform -, callPackage -, git -, rust , rustc , libiconv , windows @@ -88,7 +86,7 @@ let (lib.removeSuffix ".json" (builtins.baseNameOf "${target}")) else target; - sysroot = (callPackage ./sysroot {}) { + sysroot = callPackage ./sysroot { } { inherit target shortTarget; RUSTFLAGS = args.RUSTFLAGS or ""; originalCargoToml = src + /Cargo.toml; # profile info is later extracted |