diff options
author | Daniël de Kok <me@danieldk.eu> | 2021-02-09 11:38:25 +0100 |
---|---|---|
committer | Daniël de Kok <me@danieldk.eu> | 2021-02-10 07:01:24 +0100 |
commit | d083f412fa516e18bb3e48602fded860a2693d13 (patch) | |
tree | fd2ac2347e726c5c0d9bc49a2c5846e2d42f7d2e /pkgs/development/compilers/rust | |
parent | fd96ee6e9d0357a40fdfcae9419aeeb7c371c6f0 (diff) | |
download | nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.tar nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.tar.gz nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.tar.bz2 nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.tar.lz nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.tar.xz nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.tar.zst nixpkgs-d083f412fa516e18bb3e48602fded860a2693d13.zip |
buildRustPackage: factor out setting up .cargo/config to cargoSetupHook
This makes it possible to reuse this functionality as a hook in derivations that do not use buildRustPackage.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/make-rust-platform.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/make-rust-platform.nix b/pkgs/development/compilers/rust/make-rust-platform.nix index 4b1f572bebb..c7c7a8cdb45 100644 --- a/pkgs/development/compilers/rust/make-rust-platform.nix +++ b/pkgs/development/compilers/rust/make-rust-platform.nix @@ -12,7 +12,7 @@ rec { }; buildRustPackage = callPackage ../../../build-support/rust { - inherit rustc cargo fetchCargoTarball; + inherit rustc cargo cargoSetupHook fetchCargoTarball; }; rustcSrc = callPackage ./rust-src.nix { @@ -22,4 +22,7 @@ rec { rustLibSrc = callPackage ./rust-lib-src.nix { inherit rustc; }; + + # Hooks + inherit (callPackage ../../../build-support/rust/hooks { }) cargoSetupHook; } |