Skip to content

Commit

Permalink
build-support/rust/sysroot: let cargo-src crate become no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Mar 12, 2023
1 parent 87837a5 commit 63c8961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/rust/sysroot/src.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down

0 comments on commit 63c8961

Please sign in to comment.