Created
June 27, 2025 13:46
-
-
Save PierreZ/b6b1d5cfe11fd10dbf99af128d650005 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
inputs = { | |
nixpkgs.url = "nixpkgs/nixos-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: | |
let | |
pkgs = nixpkgs.legacyPackages.${system}; | |
overriddenJDK = pkgs.jdk8; # Change this to the desired JDK version | |
devEnv = (pkgs.buildFHSUserEnv { | |
name = "fhs"; | |
targetPkgs = pkgs: (with pkgs; [ | |
overriddenJDK | |
libsodium | |
(scala_2_13.override { jre = overriddenJDK; }) | |
(sbt.override { jre = overriddenJDK; }) | |
]); | |
}).env; | |
in { | |
devShell = devEnv; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment