nixos-config/shells/javafx.nix
2020-10-16 10:14:34 +02:00

16 lines
389 B
Nix

let
pkgs = import <nixpkgs> { };
extraRpath = pkgs.stdenv.lib.strings.makeLibraryPath (with pkgs; [ ffmpeg ]);
in
pkgs.mkShell {
buildInputs = with pkgs; [
(
pkgs.writeShellScriptBin "java" ''
old_path="$(patchelf --print-rpath ${jdk11}/bin/java)"
LD_LIBRARY_PATH="$old_path:${extraRpath}" ${jdk11}/bin/java $@
''
)
jdk11
openjfx11
];
}