From 05efb8ed913d5b0eee3736652fb91befc5e04233 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 8 Nov 2021 21:38:58 +0000 Subject: [PATCH] build-support/rust/sysroot/src: Use `dont*` instead of phase list Making this separate commit because the original was moved out just the way it was done before. --- pkgs/build-support/rust/sysroot/src.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/rust/sysroot/src.nix b/pkgs/build-support/rust/sysroot/src.nix index e741326bd0d4..3d11b62dd315 100644 --- a/pkgs/build-support/rust/sysroot/src.nix +++ b/pkgs/build-support/rust/sysroot/src.nix @@ -5,7 +5,11 @@ stdenv.mkDerivation { name = "cargo-src"; preferLocalBuild = true; - phases = [ "installPhase" ]; + + unpackPhase = "true"; + dontConfigure = true; + dontBuild = true; + installPhase = '' export RUSTC_SRC=${rustPlatform.rustLibSrc.override { }} ''