forked from M-Labs/thermostat
shell.nix: use rustPlaform from <nix-scripts> by default
Fixes Gitea issue #25
This commit is contained in:
parent
c3dd03dcf3
commit
7a28cb1cd4
10
shell.nix
10
shell.nix
@ -1,10 +1,16 @@
|
||||
{ mozillaOverlay ? builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz"
|
||||
{ mozillaOverlay ? builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz",
|
||||
latestRustNightly ? false,
|
||||
}:
|
||||
let
|
||||
pkgs = import <nixpkgs> {
|
||||
overlays = [ (import mozillaOverlay) ];
|
||||
};
|
||||
rust = pkgs.rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabihf" ];
|
||||
rust =
|
||||
if latestRustNightly
|
||||
then pkgs.rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabihf" ]
|
||||
else (pkgs.recurseIntoAttrs (
|
||||
pkgs.callPackage (import <nix-scripts/stm32/rustPlatform.nix>) {}
|
||||
)).rust.cargo;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
name = "thermostat-env";
|
||||
|
Loading…
Reference in New Issue
Block a user