Skip to content

Instantly share code, notes, and snippets.

@dacr
Created January 29, 2024 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/f64acff9d7e128183f721038e7e0a94d to your computer and use it in GitHub Desktop.
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
## 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