Merge pull request #179019 from locallycompact/lc/hashlink
This commit is contained in:
commit
ea8ec5c60e
53
pkgs/development/interpreters/hashlink/default.nix
Normal file
53
pkgs/development/interpreters/hashlink/default.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
8
pkgs/development/interpreters/hashlink/hashlink.patch
Normal file
8
pkgs/development/interpreters/hashlink/hashlink.patch
Normal file
|
@ -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
|
|
@ -14496,6 +14496,8 @@ with pkgs;
|
||||||
hadoop3 = hadoop_3_3;
|
hadoop3 = hadoop_3_3;
|
||||||
hadoop = hadoop3;
|
hadoop = hadoop3;
|
||||||
|
|
||||||
|
hashlink = callPackage ../development/interpreters/hashlink { };
|
||||||
|
|
||||||
io = callPackage ../development/interpreters/io { };
|
io = callPackage ../development/interpreters/io { };
|
||||||
|
|
||||||
ivy = callPackage ../development/interpreters/ivy { };
|
ivy = callPackage ../development/interpreters/ivy { };
|
||||||
|
|
Loading…
Reference in a new issue