1
0
Fork 0

use new location for libraries in Rust source

This commit is contained in:
Sebastien Bourdeauducq 2020-10-13 18:27:01 +08:00
parent 27d310a937
commit 34a63d7732
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ let
nativeBuildInputs = [ pkgs.cargo-xbuild ]; nativeBuildInputs = [ pkgs.cargo-xbuild ];
buildPhase = '' buildPhase = ''
export XARGO_RUST_SRC="${rustPlatform.rust.rustc.src}/src" export XARGO_RUST_SRC="${rustPlatform.rust.rustc.src}/library"
export CARGO_HOME=$(mktemp -d cargo-home.XXX) export CARGO_HOME=$(mktemp -d cargo-home.XXX)
pushd ${crate} pushd ${crate}
cargo xbuild --release --frozen \ cargo xbuild --release --frozen \

View File

@ -16,7 +16,7 @@ in
(import ./nix/mkbootimage.nix { inherit pkgs; }) (import ./nix/mkbootimage.nix { inherit pkgs; })
]; ];
XARGO_RUST_SRC = "${rustPlatform.rust.rustc.src}/src"; XARGO_RUST_SRC = "${rustPlatform.rust.rustc.src}/library";
shellHook = '' shellHook = ''
echo "Run 'cargo xbuild --release -p ...' to build." echo "Run 'cargo xbuild --release -p ...' to build."