Compare commits
3 Commits
1812fa50d9
...
83af858a24
| Author | SHA1 | Date | |
|---|---|---|---|
| 83af858a24 | |||
| a73aad2a33 | |||
| adc35e1558 |
15
default.nix
15
default.nix
@@ -1,6 +1,17 @@
|
||||
let
|
||||
rustOverlay = import (
|
||||
builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"
|
||||
);
|
||||
pkgsDefault = import <nixpkgs> { overlays = [ rustOverlay ]; };
|
||||
rustToolchain = pkgsDefault.rust-bin.stable."1.94.0".default;
|
||||
rustPlatformDefault = pkgsDefault.makeRustPlatform {
|
||||
cargo = rustToolchain;
|
||||
rustc = rustToolchain;
|
||||
};
|
||||
in
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
rustPlatform ? pkgs.rustPlatform,
|
||||
pkgs ? pkgsDefault,
|
||||
rustPlatform ? rustPlatformDefault,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage {
|
||||
|
||||
Reference in New Issue
Block a user