From c125e20bdb4c51596c60636cc8539fb4f931561d Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 9 Dec 2020 00:46:31 +0100 Subject: [PATCH] shell.nix: init --- shell.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..8e8c1f9 --- /dev/null +++ b/shell.nix @@ -0,0 +1,17 @@ +{ mozillaOverlay ? builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz" +}: +let + pkgs = import { + overlays = [ (import mozillaOverlay) ]; + }; + rust = pkgs.rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabihf" ]; +in +pkgs.mkShell { + name = "thermostat-env"; + buildInputs = with pkgs; [ + rust gcc + openocd + ] ++ (with python3Packages; [ + numpy matplotlib + ]); +}