forked from nus-cs2103-AY2425S1/ip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix_helper_file
24 lines (23 loc) · 939 Bytes
/
shell.nix_helper_file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
with import <nixpkgs> {};
pkgs.mkShell {
buildInputs = with pkgs; [
jdk17
scenebuilder
];
shellHook = ''
export NIX_SHELL_TITLE=""
hyprctl dispatch setfloating activewindow true
hyprctl dispatch resizeactive exact 70% 70%
hyprctl dispatch centerwindow
export JAVA_HOME="${pkgs.jdk17}/lib/openjdk"
export JAVAFX_HOME="${pkgs.openjfx17}"
export PATH="$JAVA_HOME/bin:$PATH"
export LD_LIBRARY_PATH="${pkgs.openjfx17}/modules_libs/javafx.graphics:"
export LD_LIBRARY_PATH="${pkgs.xorg.libXxf86vm}/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="${pkgs.xorg.libX11}/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="${pkgs.xorg.libXtst}/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="${pkgs.libGL}/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="${pkgs.glib.out}/lib:$LD_LIBRARY_PATH"
exec zsh
'';
}