Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created December 26, 2021 13:07
Show Gist options
  • Save borkdude/f31eb50a4867c547ef84946cac11d5ee to your computer and use it in GitHub Desktop.
Save borkdude/f31eb50a4867c547ef84946cac11d5ee to your computer and use it in GitHub Desktop.
Mix and match older tools from nixpkgs
{ pkgs ? import <nixpkgs> {} }:
let
graalvm21_2_0 = import (builtins.fetchGit {
# Descriptive name to make the store path easier to identify
name = "graalvm-21.2.0";
url = "https://github.com/NixOS/nixpkgs";
ref = "refs/heads/nixpkgs-unstable";
rev = "e4dda76e6397fb1e30b907abeaf6a72bb055a1e6";
}) {};
babashka0_6_5 = import (builtins.fetchGit {
# Descriptive name to make the store path easier to identify
name = "babashka0.6.5";
url = "https://github.com/NixOS/nixpkgs";
ref = "refs/heads/nixpkgs-unstable";
rev = "1b323e036ce3bd0816e79c1cdef02eb1ba063f57";
}) {};
in pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [ graalvm21_2_0.graalvm11-ce babashka0_6_5.babashka ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment