solutions/nix/rust.nix

11 lines
297 B
Nix
Raw Normal View History

2021-04-18 21:43:32 +00:00
{ sources ? import ./sources.nix }:
let
pkgs =
import sources.nixpkgs { overlays = [ (import sources.nixpkgs-mozilla) ]; };
channel = "nightly";
date = "2021-03-18";
targets = [ "wasm32-unknown-unknown" "wasm32-wasi" ];
chan = pkgs.rustChannelOfTargets channel date targets;
in
chan