Add shell.nix
This commit is contained in:
parent
93e283d214
commit
a9293ee200
1 changed files with 20 additions and 0 deletions
20
shell.nix
Normal file
20
shell.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
maven
|
||||
jdk17
|
||||
openjfx17
|
||||
glib
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PATH="$PATH:${pkgs.maven}/bin"
|
||||
export JAVA_HOME="${pkgs.jdk17}/lib/openjdk"
|
||||
export PATH="$PATH:$JAVA_HOME/bin"
|
||||
export LD_LIBRARY_PATH="${pkgs.libGL}/lib:${pkgs.gtk3}/lib:${pkgs.glib.out}/lib:${pkgs.xorg.libXtst}/lib:$LD_LIBRARY_PATH"
|
||||
export JAVAFX_PATH="${pkgs.openjfx17}/lib"
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in a new issue