Created
January 29, 2024 09:47
-
-
Save dacr/f64acff9d7e128183f721038e7e0a94d to your computer and use it in GitHub Desktop.
nix-shell environment for javafx scala-fx / published by https://github.com/dacr/code-examples-manager #36e58dc5-7408-43dc-9514-7d5ebead8218/17e71367738abe9b30eda3112c47e43f0eaaf323
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
## summary : nix-shell environment for javafx scala-fx | |
## keywords : nix, djl, nix-shell, javafx, nix | |
## publish : gist | |
## authors : David Crosson | |
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
## id : 36e58dc5-7408-43dc-9514-7d5ebead8218 | |
## created-on : 2024-01-29T10:45:57+01:00 | |
## managed-by : https://github.com/dacr/code-examples-manager | |
## run-with : nix-shell $file | |
# Run with `nix-shell nix-shell-scalafx.nix` | |
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
buildInputs = | |
let | |
jdk21fx = pkgs.jdk21.override { | |
enableJavaFX = true; | |
}; | |
sbt21fx = pkgs.sbt.override { | |
jre = jdk21fx; | |
}; | |
scala-cli-fx = pkgs.scala-cli.override { | |
jre = jdk21fx; | |
}; | |
in with pkgs; [ | |
jdk21fx sbt21fx scala-cli-fx | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment