treewide: use dontCargo{Build,Check,Install} (#354024)

This commit is contained in:
Theodore Ni 2024-11-09 12:47:39 -08:00 committed by GitHub
commit da39eb7dd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -39,9 +39,9 @@ rustPlatform.buildRustPackage.override { inherit stdenv; } rec {
# Use the stdenv default phases (./configure; make) instead of the
# ones from buildRustPackage.
configurePhase = "configurePhase";
buildPhase = "buildPhase";
checkPhase = "checkPhase";
installPhase = "installPhase";
dontCargoBuild = true;
dontCargoCheck = true;
dontCargoInstall = true;
postPatch = ''
# Have to do this here instead of in preConfigure because

View File

@ -83,8 +83,7 @@ rustPlatform.buildRustPackage rec {
"CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
# Use default stdenv installPhase, not the buildRustPackage one.
installPhase = "installPhase";
dontCargoInstall = true;
# These libraries are only used by the X11 backend, which will not
# be the common case, so just make them available, don't link them.