-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
46 lines (40 loc) · 761 Bytes
/
shell.nix
File metadata and controls
46 lines (40 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
pkgs ? import <nixpkgs> { },
}:
let
nativeDeps = with pkgs; [
libx11
libxext
libxrender
libxtst
libxi
freetype
fontconfig
libGL
alsa-lib
at-spi2-atk
at-spi2-core
cairo
gdk-pixbuf
glib
gtk3
pango
];
in
pkgs.mkShell {
name = "pomolin-dev";
packages =
with pkgs;
[
javaPackages.compiler.temurin-bin.jdk-21
# gradle
# kotlin
]
++ nativeDeps;
shellHook = ''
export JAVA_HOME="${pkgs.javaPackages.compiler.temurin-bin.jdk-21}"
export PATH="$JAVA_HOME/bin:$PATH"
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath nativeDeps}:$LD_LIBRARY_PATH"
echo "Pomolin dev shell ready — JDK $(java -version 2>&1 | head -1)"
'';
}