3
0
Fork 0
forked from mirrors/nixpkgs

build-support/rust/sysroot: let cargo-src crate become no_std

This commit is contained in:
Astro 2023-02-09 01:15:07 +01:00
parent 87837a5fcf
commit 63c8961f8b

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation {
+ ''
${buildPackages.python3.withPackages (ps: with ps; [ toml ])}/bin/python3 ${./cargo.py}
mkdir -p $out/src
touch $out/src/lib.rs
echo '#![no_std]' > $out/src/lib.rs
cp Cargo.toml $out/Cargo.toml
cp ${./Cargo.lock} $out/Cargo.lock
'';