Testing Thermostat v1 with ionpak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 749B

123456789101112131415161718192021222324252627
  1. { # Use master branch of the overlay by default
  2. mozillaOverlay ? import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz),
  3. }:
  4. let
  5. pkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
  6. in
  7. with pkgs;
  8. let
  9. rustcSrc = fetchgit {
  10. url = https://github.com/rust-lang/rust.git;
  11. # master of 2019-08-31
  12. rev = "b3146549abf25818fecfc7555f35358a948e27ad";
  13. sha256 = "1db3g1iq6ba5pdasffay1bpywdibv83z5nwp2dzi0fxvz5bqx1gi";
  14. fetchSubmodules = true;
  15. };
  16. targets = [
  17. ];
  18. rust =
  19. rustChannelOfTargets "nightly" null targets;
  20. rustPlatform = recurseIntoAttrs (makeRustPlatform {
  21. rustc = rust // { src = rustcSrc; };
  22. cargo = rust;
  23. });
  24. in {
  25. inherit pkgs rustPlatform rustcSrc;
  26. }