Created
September 16, 2021 19:03
-
-
Save mbbx6spp/5d1775f3dee80c65e0f7039baa9bcfed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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