File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ nb-configuration.xml
57
57
# # OS X
58
58
.DS_Store
59
59
60
+ # # nix-shell
61
+ /shell.nix
62
+
60
63
# Development
61
64
todo /
62
65
/ci /qemu /
Original file line number Diff line number Diff line change
1
+ # Development environment with nix-shell
2
+ { pkgs ? import <nixpkgs> { }
3
+ } :
4
+ pkgs . mkShell {
5
+ name = "java-gtk" ;
6
+ buildInputs = [
7
+ pkgs . git
8
+ pkgs . jdk21_headless # Non headless is linked against gtk3 and does therefore not work
9
+ pkgs . gtk4
10
+ ] ;
11
+ shellHook = ''
12
+ LD_LIBRARY_PATH=${ pkgs . gtk4 . outPath } /lib
13
+ LD_LIBRARY_PATH=${ LD_LIBRARY_PATH } :${ pkgs . glib . out . outPath } /lib
14
+ LD_LIBRARY_PATH=${ LD_LIBRARY_PATH } :${ pkgs . gdk-pixbuf . outPath } /lib
15
+ LD_LIBRARY_PATH=${ LD_LIBRARY_PATH } :${ pkgs . cairo . outPath } /lib
16
+ LD_LIBRARY_PATH=${ LD_LIBRARY_PATH } :${ pkgs . pango . out . outPath } /lib
17
+ LD_LIBRARY_PATH=${ LD_LIBRARY_PATH } :${ pkgs . libadwaita . outPath } /lib
18
+ export LD_LIBRARY_PATH
19
+ echo "https://github.com/bailuk/java-gtk"
20
+ echo "./gradlew generate && ./gradlew build && ./gradlew run"
21
+ '' ;
22
+ }
You can’t perform that action at this time.
0 commit comments