Rust build-support: fixing a compilation error in some crates (such as proc-macro2)
This commit is contained in:
parent
5632aad473
commit
f1de24feb8
@ -71,6 +71,8 @@ in ''
|
|||||||
export CARGO_PKG_VERSION_MAJOR=${builtins.elemAt version 0}
|
export CARGO_PKG_VERSION_MAJOR=${builtins.elemAt version 0}
|
||||||
export CARGO_PKG_VERSION_MINOR=${builtins.elemAt version 1}
|
export CARGO_PKG_VERSION_MINOR=${builtins.elemAt version 1}
|
||||||
export CARGO_PKG_VERSION_PATCH=${builtins.elemAt version 2}
|
export CARGO_PKG_VERSION_PATCH=${builtins.elemAt version 2}
|
||||||
|
export NUM_JOBS=1
|
||||||
|
export RUSTC="rustc"
|
||||||
if [[ -n "${versionPre}" ]]; then
|
if [[ -n "${versionPre}" ]]; then
|
||||||
export CARGO_PKG_VERSION_PRE="${versionPre}"
|
export CARGO_PKG_VERSION_PRE="${versionPre}"
|
||||||
fi
|
fi
|
||||||
|
@ -20,9 +20,11 @@ crateName: metadata:
|
|||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
cp -r target/build/* $out/lib # */
|
cp -r target/build/* $out/lib # */
|
||||||
fi
|
fi
|
||||||
if [[ "$(ls -A target/bin)" ]]; then
|
if [[ -d target/bin ]]; then
|
||||||
mkdir -p $out/bin
|
if [[ "$(ls -A target/bin)" ]]; then
|
||||||
cp -P target/bin/* $out/bin # */
|
mkdir -p $out/bin
|
||||||
|
cp -P target/bin/* $out/bin # */
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user