2021-03-15 17:04:48 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boehmgc, zlib, sqlite, pcre, cmake, pkg-config
|
2019-09-22 09:38:09 +02:00
|
|
|
, git, apacheHttpd, apr, aprutil, libmysqlclient, mbedtls, openssl, pkgs, gtk2, libpthreadstubs
|
2016-12-09 10:16:27 +01:00
|
|
|
}:
|
2009-11-30 02:05:07 +01:00
|
|
|
|
2012-10-07 11:18:25 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "neko";
|
2021-03-15 17:04:48 +01:00
|
|
|
version = "2.3.0";
|
2009-11-30 02:05:07 +01:00
|
|
|
|
2021-03-15 17:04:48 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HaxeFoundation";
|
|
|
|
repo = "neko";
|
|
|
|
rev = "v${lib.replaceStrings [ "." ] [ "-" ] version}";
|
|
|
|
sha256 = "19rc59cx7qqhcqlb0znwbnwbg04c1yq6xmvrwm1xi46k3vxa957g";
|
2012-10-07 11:18:25 +02:00
|
|
|
};
|
2009-11-30 02:05:07 +01:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config git ];
|
2016-12-09 10:16:27 +01:00
|
|
|
buildInputs =
|
2017-12-20 18:55:43 +01:00
|
|
|
[ boehmgc zlib sqlite pcre apacheHttpd apr aprutil
|
2019-09-22 09:38:09 +02:00
|
|
|
libmysqlclient mbedtls openssl libpthreadstubs ]
|
2021-01-22 12:25:31 +01:00
|
|
|
++ lib.optional stdenv.isLinux gtk2
|
|
|
|
++ lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
|
2016-12-11 18:11:24 +01:00
|
|
|
pkgs.darwin.apple_sdk.frameworks.Carbon];
|
|
|
|
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
|
2010-03-17 00:34:56 +01:00
|
|
|
|
2017-12-21 02:47:36 +01:00
|
|
|
installCheckPhase = ''
|
2016-12-09 10:16:27 +01:00
|
|
|
bin/neko bin/test.n
|
2009-11-30 02:05:07 +01:00
|
|
|
'';
|
|
|
|
|
2017-12-21 02:47:36 +01:00
|
|
|
doInstallCheck = true;
|
|
|
|
dontPatchELF = true;
|
2016-12-09 10:16:27 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2012-10-07 11:18:25 +02:00
|
|
|
description = "A high-level dynamically typed programming language";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://nekovm.org";
|
2021-03-20 01:20:51 +01:00
|
|
|
license = [
|
|
|
|
# list based on https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE
|
|
|
|
licenses.gpl2Plus # nekoc, nekoml
|
|
|
|
licenses.lgpl21Plus # mysql.ndll
|
|
|
|
licenses.bsd3 # regexp.ndll
|
|
|
|
licenses.zlib # zlib.ndll
|
|
|
|
licenses.asl20 # mod_neko, mod_tora, mbedTLS
|
|
|
|
licenses.mit # overall, other libs
|
|
|
|
"https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE#L24-L40" # boehm gc
|
|
|
|
];
|
2021-03-15 17:04:48 +01:00
|
|
|
maintainers = [ maintainers.marcweber maintainers.locallycompact ];
|
2016-12-09 10:16:27 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2009-11-30 02:05:07 +01:00
|
|
|
};
|
2012-10-07 11:18:25 +02:00
|
|
|
}
|