Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv
2, lib
3, fetchFromGitHub
4, libGL
5, libGLU
6, libpng
7, libjpeg_turbo
8, libuv
9, libvorbis
10, mbedtls_2
11, openal
12, pcre
13, SDL2
14, sqlite
15, getconf
16}:
17
18stdenv.mkDerivation rec {
19 pname = "hashlink";
20 version = "1.13";
21
22 src = fetchFromGitHub {
23 owner = "HaxeFoundation";
24 repo = "hashlink";
25 rev = version;
26 sha256 = "lpHW0JWxbLtOBns3By56ZBn47CZsDzwOFBuW9MlERrE=";
27 };
28
29 makeFlags = [ "PREFIX=$(out)" ];
30
31 buildInputs = [
32 libGL
33 libGLU
34 libjpeg_turbo
35 libpng
36 libuv
37 libvorbis
38 mbedtls_2
39 openal
40 pcre
41 SDL2
42 sqlite
43 ];
44
45 nativeBuildInputs = [ getconf ];
46
47 postFixup = lib.optionalString stdenv.isDarwin ''
48 install_name_tool -change libhl.dylib $out/lib/libhl.dylib $out/bin/hl
49 '';
50
51 meta = with lib; {
52 description = "Virtual machine for Haxe";
53 mainProgram = "hl";
54 homepage = "https://hashlink.haxe.org/";
55 license = licenses.mit;
56 platforms = [ "x86_64-linux" "x86_64-darwin" ];
57 maintainers = with maintainers; [ iblech locallycompact logo ];
58 };
59}