From 34a63d7732551c222287732feb3b7e17c9ddbf04 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 13 Oct 2020 18:27:01 +0800 Subject: [PATCH] use new location for libraries in Rust source --- default.nix | 2 +- shell.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 8bd83a3..0d5ad56 100644 --- a/default.nix +++ b/default.nix @@ -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 \ diff --git a/shell.nix b/shell.nix index 48972e5..d6479e9 100644 --- a/shell.nix +++ b/shell.nix @@ -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."