Last active
February 3, 2026 20:20
-
-
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/fa6f81cfa637c33986510a2e460810fb597acb97
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 License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| ## 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