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.

25 lines
604 B

2 years ago
  1. let
  2. basePkgs = import ./nixpkgs.nix { };
  3. rust_overlay = with basePkgs; import (fetchFromGitHub
  4. (lib.importJSON ./oxalica_rust_overlay.json));
  5. pkgs = import ./nixpkgs.nix { overlays = [ rust_overlay ]; };
  6. nightlyToolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
  7. grcov = with pkgs; callPackage ./grcov { rustToolchain = nightlyToolchain; };
  8. in
  9. with pkgs;
  10. mkShell {
  11. buildInputs = [
  12. nightlyToolchain
  13. grcov
  14. ] ++ lib.optionals stdenv.isDarwin [
  15. darwin.apple_sdk.frameworks.Security
  16. ];
  17. shellHook = ''
  18. export RUST_BACKTRACE=full
  19. '';
  20. }