forked from M-Labs/zynq-rs
use new location for libraries in Rust source
This commit is contained in:
parent
27d310a937
commit
34a63d7732
|
@ -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 \
|
||||||
|
|
|
@ -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."
|
||||||
|
|
Loading…
Reference in New Issue