{ pkgs ? (import <nixpkgs> {}) }:

let
  env = with pkgs.rustPlatform; [
    rustc
    cargo
  ];
in

pkgs.stdenv.mkDerivation rec {
    name = "imag";
    src = ./.;
    version = "0.0.0";

    buildInputs = [ env ];

}


{ pkgs ? (import <nixpkgs> {}) }:

let
  env = with pkgs.rustUnstable; [
    rustc
    cargo
  ];
in

pkgs.stdenv.mkDerivation rec {
    name = "imag";
    src = ./.;
    version = "0.0.0";

    buildInputs = [ env ];

}


Switch to pkgs.rustUnstable, so we do not need to rebuild rustc (wtf?)
Switch to pkgs.rustUnstable, so we do not need to rebuild rustc (wtf?)
