diff --git a/pkgs/by-name/docsets/rust-std/Cargo.lock b/pkgs/by-name/docsets/rust-std/Cargo.lock index 7109213ba..24a4fde93 100644 --- a/pkgs/by-name/docsets/rust-std/Cargo.lock +++ b/pkgs/by-name/docsets/rust-std/Cargo.lock @@ -3,5 +3,5 @@ version = 3 [[package]] -name = "rust-std" +name = "std" version = "0.1.0" diff --git a/pkgs/by-name/docsets/rust-std/Cargo.toml b/pkgs/by-name/docsets/rust-std/Cargo.toml index e5aee088c..a1b36a3e4 100644 --- a/pkgs/by-name/docsets/rust-std/Cargo.toml +++ b/pkgs/by-name/docsets/rust-std/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rust-std" +name = "std" version = "0.1.0" edition = "2021" diff --git a/pkgs/by-name/docsets/rust-std/package.nix b/pkgs/by-name/docsets/rust-std/package.nix index f6725f575..2b2d833c5 100644 --- a/pkgs/by-name/docsets/rust-std/package.nix +++ b/pkgs/by-name/docsets/rust-std/package.nix @@ -3,9 +3,15 @@ rustPlatform, }: rustPlatform.buildRustPackage { - name = "rust-std"; + pname = "std"; + inherit (rustPlatform.rust.rustc) version; src = ./.; cargoLock.lockFile = ./Cargo.lock; + postPatch = '' + substituteInPlace Cargo.toml \ + --replace-fail 'version = "0.1.0"' 'version = "'"$version"'"' + ''; + nativeBuildInputs = [ docsets.cargoDocsetHook ]; } diff --git a/pkgs/by-name/docsets/rust-std/src/lib.rs b/pkgs/by-name/docsets/rust-std/src/lib.rs index 857295c7c..72523c625 100644 --- a/pkgs/by-name/docsets/rust-std/src/lib.rs +++ b/pkgs/by-name/docsets/rust-std/src/lib.rs @@ -6,4 +6,4 @@ // *sigh* #[doc(inline)] -pub use std; +pub use std::*;