mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
treewide: use dontCargo{Build,Check,Install} (#354024)
This commit is contained in:
commit
da39eb7dd0
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user