blob: 77ab765f20743599c3ee18164c6f9a2fa4d7ab15 (
plain)
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
|
{ stdenv, pkgs, ... }:
with pkgs;
stdenv.mkDerivation rec {
name = "lwjgl-${version}";
version = "2.9.2";
src = fetchurl {
url = "https://github.com/LWJGL/lwjgl/archive/lwjgl${version}.tar.gz";
sha256 = "1m396ply3kspym3r00s1rbk77irn2f9vgr76xsy7272k649y3wky";
};
buildInputs = with xorg; [ ant openjdk gcc libX11 libXt libXcursor
libXxf86vm libXrandr libXext ];
buildPhase = "mkdir -p bin && ant generate-all && ant compile && ant compile_native";
installPhase = ''
mkdir -p $out/lib
cp bin/lwjgl/*.so $out/lib
'';
meta = with stdenv.lib; {
description = "The Lightweight Java Game Library";
longDescription = ''
LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL), audio (OpenAL) and parallel computing (OpenCL) applications. This access is direct and high-performance, yet also wrapped in a type-safe and user-friendly layer, appropriate for the Java ecosystem.
'';
homepage = http://legacy.lwjgl.org/;
license = licenses.bsd3;
maintainers = with maintainers; [ pmiddend ];
platforms = platforms.linux;
};
}
|