We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff2d76 commit a94624fCopy full SHA for a94624f
nix/package.nix
@@ -1,11 +1,21 @@
1
-{
+{
2
lib,
3
stdenv,
4
- rustPlatform,
+ makeRustPlatform,
5
+ rust-bin,
6
installShellFiles,
7
}:
8
let
9
cargoToml = builtins.fromTOML (builtins.readFile ../Cargo.toml);
10
+
11
+ # Get the Rust toolchain from rust-overlay
12
+ toolchain = rust-bin.fromRustupToolchainFile ../rust-toolchain.toml;
13
14
+ # Create rustPlatform from the toolchain
15
+ rustPlatform = makeRustPlatform {
16
+ cargo = toolchain;
17
+ rustc = toolchain;
18
+ };
19
in
20
rustPlatform.buildRustPackage {
21
pname = cargoToml.package.name;
0 commit comments