diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2021-10-26 22:04:25 -0700 |
---|---|---|
committer | Bernardo Meurer <bernardo@meurer.org> | 2021-11-01 10:40:09 -0700 |
commit | 949c9f67cd0826c4fe82fe37710acbfce5d00aea (patch) | |
tree | e42f3b79d7df14c53417ff0ddb424dbf07981542 /pkgs/development/compilers | |
parent | d917b8cdb3f692e604594d7732acd88eb684c3d1 (diff) |
makeRustPlatform: allow to easily override stdenv
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/rust/make-rust-platform.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/compilers/rust/make-rust-platform.nix b/pkgs/development/compilers/rust/make-rust-platform.nix index b7379ac677203..33d826eef5077 100644 --- a/pkgs/development/compilers/rust/make-rust-platform.nix +++ b/pkgs/development/compilers/rust/make-rust-platform.nix @@ -1,6 +1,6 @@ -{ buildPackages, callPackage }: +{ buildPackages, callPackage, stdenv }@prev: -{ rustc, cargo, ... }: +{ rustc, cargo, stdenv ? prev.stdenv, ... }: rec { rust = { @@ -14,22 +14,22 @@ rec { buildRustPackage = callPackage ../../../build-support/rust { git = buildPackages.gitMinimal; - inherit cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook + inherit stdenv cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook fetchCargoTarball importCargoLock rustc; }; importCargoLock = buildPackages.callPackage ../../../build-support/rust/import-cargo-lock.nix {}; rustcSrc = callPackage ./rust-src.nix { - inherit rustc; + inherit stdenv rustc; }; rustLibSrc = callPackage ./rust-lib-src.nix { - inherit rustc; + inherit stdenv rustc; }; # Hooks inherit (callPackage ../../../build-support/rust/hooks { - inherit cargo rustc; + inherit stdenv cargo rustc; }) cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook maturinBuildHook; } |