summary refs log tree commit diff
path: root/pkgs/build-support/rust
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-19 19:59:28 -0400
committerfigsoda <figsoda@pm.me>2021-10-19 20:11:28 -0400
commit836e6d3e021b56c84de76ff32f751ca4ea994079 (patch)
treea98040b9e34716e4b87dfab8923cc5100dc69966 /pkgs/build-support/rust
parent05344c478586e38a5abd20fbe035a4f1ed4e5b36 (diff)
downloadnixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.tar
nixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.tar.gz
nixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.tar.bz2
nixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.tar.lz
nixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.tar.xz
nixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.tar.zst
nixpkgs-836e6d3e021b56c84de76ff32f751ca4ea994079.zip
buildRustPackage: remove unused arguments, minor styling changes
Diffstat (limited to 'pkgs/build-support/rust')
-rw-r--r--pkgs/build-support/rust/default.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix
index 2eb45bcafa1..840abb2d918 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