forked from phantamanta44/libnine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
23 lines (17 loc) · 705 Bytes
/
shell.nix
File metadata and controls
23 lines (17 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs ? import <nixpkgs> {}
, unstable ? import <nixos-unstable> {} }:
let
zulu17 = unstable.zulu17;
zulu8 = pkgs.zulu8;
gradlePropPrefix = "ORG_GRADLE_PROJECT_";
runtimeDeps = with pkgs; [ libpulseaudio libGL glfw openal stdenv.cc.cc.lib udev ]
++ (with xorg; [ libX11 libXext libXcursor libXrandr libXxf86vm ]);
in
pkgs.mkShell {
nativeBuildInputs = [ zulu17 ];
buildInputs = [ zulu8 ];
"${gradlePropPrefix}org.gradle.java.installations.auto-detect" = false;
"${gradlePropPrefix}org.gradle.java.installations.auto-download" = false;
"${gradlePropPrefix}org.gradle.java.installations.paths" = "${zulu17},${zulu8}";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath runtimeDeps;
}