forked from mirrors/nixpkgs
build-support/rust/sysroot: let cargo-src crate become no_std
This commit is contained in:
parent
87837a5fcf
commit
63c8961f8b
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue