summary refs log tree commit diff
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2023-02-09 01:15:07 +0100
committerAstro <astro@spaceboyz.net>2023-03-12 12:24:23 +0100
commit63c8961f8b144ca40314909330f7759d1fa7e530 (patch)
tree223ea568c276693512e60a3fe17a1feb5e8df744
parent87837a5fcf7dd9c58bb80f15a8f046a2abc8a4c8 (diff)
downloadnixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.tar
nixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.tar.gz
nixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.tar.bz2
nixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.tar.lz
nixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.tar.xz
nixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.tar.zst
nixpkgs-63c8961f8b144ca40314909330f7759d1fa7e530.zip
build-support/rust/sysroot: let cargo-src crate become no_std
-rw-r--r--pkgs/build-support/rust/sysroot/src.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/rust/sysroot/src.nix b/pkgs/build-support/rust/sysroot/src.nix
index 3d11b62dd31..664702e82c3 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
   '';