about summary refs log tree commit diff
path: root/pkgs/development/interpreters/hashlink
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@homotopic.tech>2022-06-25 12:50:08 +0000
committerDaniel Firth <dan.firth@homotopic.tech>2022-06-28 17:01:11 +0000
commit58f73da66884c867f411a2cb3a52b6e241755fe6 (patch)
tree674bfb1942d6269a86ec9f1df013f866e02d4a7a /pkgs/development/interpreters/hashlink
parent41c91c48eee8801b91eb6c18ef763b11dc059047 (diff)
hashlink: init at 1.12
Diffstat (limited to 'pkgs/development/interpreters/hashlink')
-rw-r--r--pkgs/development/interpreters/hashlink/default.nix53
-rw-r--r--pkgs/development/interpreters/hashlink/hashlink.patch8
2 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/hashlink/default.nix b/pkgs/development/interpreters/hashlink/default.nix
new file mode 100644
index 0000000000000..eb69bd4103d2a
--- /dev/null
+++ b/pkgs/development/interpreters/hashlink/default.nix
@@ -0,0 +1,53 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, libGL
+, libGLU
+, libpng
+, libjpeg_turbo
+, libuv
+, libvorbis
+, mbedtls
+, openal
+, pcre
+, SDL2
+, sqlite
+}:
+
+stdenv.mkDerivation rec {
+  pname = "hashlink";
+  version = "1.12";
+
+  src = fetchFromGitHub {
+    owner = "HaxeFoundation";
+    repo = "hashlink";
+    rev = version;
+    sha256 = "AiUGhTxz4Pkrks4oE+SAuAQPMuC5T2B6jo3Jd3sNrkQ=";
+  };
+
+  patches = [ ./hashlink.patch ];
+
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  buildInputs = [
+    libGL
+    libGLU
+    libjpeg_turbo
+    libpng
+    libuv
+    libvorbis
+    mbedtls
+    openal
+    pcre
+    SDL2
+    sqlite
+  ];
+
+  meta = with lib; {
+    description = "A virtual machine for Haxe";
+    homepage = "https://hashlink.haxe.org/";
+    license = licenses.mit;
+    platforms = [ "x86_64-linux" ];
+    maintainers = with maintainers; [ iblech locallycompact ];
+  };
+}
diff --git a/pkgs/development/interpreters/hashlink/hashlink.patch b/pkgs/development/interpreters/hashlink/hashlink.patch
new file mode 100644
index 0000000000000..5e699073d02dc
--- /dev/null
+++ b/pkgs/development/interpreters/hashlink/hashlink.patch
@@ -0,0 +1,8 @@
+*** a/Makefile  1970-01-01 01:00:01.000000000 +0100
+--- b/Makefile  2022-06-21 23:36:10.023460654 +0200
+*************** endif
+*** 109,110 ****
+--- 109,111 ----
+  LIBOPENAL = -lopenal
++ LIBOPENGL = -lGL
+  RELEASE_NAME = linux