use new location for libraries in Rust source

pull/71/head
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 ];
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)
pushd ${crate}
cargo xbuild --release --frozen \

View File

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