Skip to content

Instantly share code, notes, and snippets.

@jeovazero
Last active February 24, 2022 17:06
Show Gist options
  • Save jeovazero/ea809f87d546749123f8949a21395ac6 to your computer and use it in GitHub Desktop.
Save jeovazero/ea809f87d546749123f8949a21395ac6 to your computer and use it in GitHub Desktop.
let
config = {
packageOverrides = p: {
sbt = p.sbt.override {
jre = p.jdk11;
};
scala = p.scala.override {
jre = p.jdk11;
};
};
};
nixpkgs = import <nixpkgs-21.11-darwin> { inherit config; };
in
with nixpkgs;
[ neovim git docker-compose sbt jdk11 scala ]
let
pinnedNix = builtins.fetchTarball {
name = "nix-darwin-21.11-2022-02-22";
url = "https://github.com/nixos/nixpkgs/archive/759e24c7d9169ec798107246b5117a997f27e5dc.tar.gz";
# Hash obtained using `nix-prefetch-url --unpack <url>`
sha256 = "1zrb3jn8jks5b8rs5x0zayya70j6hijjm3xyc4ygx5bxlv05is73";
};
config = {
packageOverrides = p: {
sbt = p.sbt.override {
jre = p.jdk11;
};
scala = p.scala.override {
jre = p.jdk11;
};
};
};
nixpkgs = import pinnedNix { inherit config; };
in
with nixpkgs;
[ neovim git docker-compose sbt jdk11 scala ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment