nixpkgs/pkgs/development/interpreters/hashlink/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1014 B
Nix
Raw Normal View History

2022-06-25 12:50:08 +00:00
{ stdenv
, lib
, fetchFromGitHub
, libGL
, libGLU
, libpng
, libjpeg_turbo
, libuv
, libvorbis
, mbedtls_2
2022-06-25 12:50:08 +00:00
, openal
, pcre
, SDL2
, sqlite
, getconf
2022-06-25 12:50:08 +00:00
}:
stdenv.mkDerivation rec {
pname = "hashlink";
2023-01-31 02:53:43 +00:00
version = "1.13";
2022-06-25 12:50:08 +00:00
src = fetchFromGitHub {
owner = "HaxeFoundation";
repo = "hashlink";
rev = version;
2023-01-31 02:53:43 +00:00
sha256 = "lpHW0JWxbLtOBns3By56ZBn47CZsDzwOFBuW9MlERrE=";
2022-06-25 12:50:08 +00:00
};
makeFlags = [ "PREFIX=$(out)" ];
buildInputs = [
libGL
libGLU
libjpeg_turbo
libpng
libuv
libvorbis
mbedtls_2
2022-06-25 12:50:08 +00:00
openal
pcre
SDL2
sqlite
];
nativeBuildInputs = [ getconf ];
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -change libhl.dylib $out/lib/libhl.dylib $out/bin/hl
'';
2022-06-25 12:50:08 +00:00
meta = with lib; {
description = "A virtual machine for Haxe";
homepage = "https://hashlink.haxe.org/";
license = licenses.mit;
platforms = [ "x86_64-linux" "x86_64-darwin" ];
maintainers = with maintainers; [ iblech locallycompact logo ];
2022-06-25 12:50:08 +00:00
};
}