thermostat/shell.nix

26 lines
580 B
Nix
Raw Normal View History

2019-03-07 23:27:33 +08:00
{ rustChannel ? "nightly" }:
let
mozillaOverlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
in
with import <nixpkgs> { overlays = [ mozillaOverlay ]; };
let
rustPlatform = recurseIntoAttrs (
callPackage (import ./nix/rustPlatform.nix) { inherit rustChannel; }
);
in
# mkShell {
# inputsFrom = with rustPlatform.rust; [
# rustc cargo
# ];
# }
stdenv.mkDerivation {
name = "adc2tcp-env";
buildInputs = with rustPlatform.rust; [
rustc cargo
];
# Set Environment Variables
RUST_BACKTRACE = 1;
}