Skip to content

Instantly share code, notes, and snippets.

@mbbx6spp
Created September 16, 2021 19:03
Show Gist options
  • Save mbbx6spp/5d1775f3dee80c65e0f7039baa9bcfed to your computer and use it in GitHub Desktop.
Save mbbx6spp/5d1775f3dee80c65e0f7039baa9bcfed to your computer and use it in GitHub Desktop.
let
version = {
name = "nixpkgs-21.05-darwin-20210827";
url = "https://github.com/nixos/nixpkgs.git";
rev = "9d6766c0f0b3b03bd63ffc08b2e23e476145719d";
ref = "nixpkgs-21.05-darwin";
};
jvmOverlay = self: super:
let
scala = super.scala.override { jre = self.jre_headless; };
in { inherit scala; };
in import (builtins.fetchGit version) {
overlays = [ jvmOverlay ];
config.allowUnfree = true;
}
{ nixpkgs ? import ./nixpkgs.nix
}:
let
inherit (nixpkgs) pkgs;
inherit (pkgs) mkShell;
in mkShell {
buildInputs = with pkgs; [
scala
sbt
sbt-extras
metals
entr
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment