From 63c8961f8b144ca40314909330f7759d1fa7e530 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 9 Feb 2023 01:15:07 +0100 Subject: [PATCH] build-support/rust/sysroot: let cargo-src crate become no_std --- pkgs/build-support/rust/sysroot/src.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/rust/sysroot/src.nix b/pkgs/build-support/rust/sysroot/src.nix index 3d11b62dd315..664702e82c31 100644 --- a/pkgs/build-support/rust/sysroot/src.nix +++ b/pkgs/build-support/rust/sysroot/src.nix @@ -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 '';