2017-12-20 09:55:43 -08:00
|
|
|
{ stdenv, fetchurl, boehmgc, zlib, sqlite, pcre, cmake, pkgconfig
|
2019-09-22 00:38:09 -07:00
|
|
|
, git, apacheHttpd, apr, aprutil, libmysqlclient, mbedtls, openssl, pkgs, gtk2, libpthreadstubs
|
2016-12-09 01:16:27 -08:00
|
|
|
}:
|
2009-11-29 17:05:07 -08:00
|
|
|
|
2012-10-07 02:18:25 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "neko";
|
2017-12-20 09:55:43 -08:00
|
|
|
version = "2.2.0";
|
2009-11-29 17:05:07 -08:00
|
|
|
|
2012-10-07 02:18:25 -07:00
|
|
|
src = fetchurl {
|
2018-03-24 22:04:25 -07:00
|
|
|
url = "https://nekovm.org/media/neko-${version}-src.tar.gz";
|
2017-12-20 09:55:43 -08:00
|
|
|
sha256 = "1qv47zaa0vzhjlq5wb71627n7dbsxpc1gqpg0hsngjxnbnh1q46g";
|
2012-10-07 02:18:25 -07:00
|
|
|
};
|
2009-11-29 17:05:07 -08:00
|
|
|
|
2017-12-20 09:55:43 -08:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig git ];
|
2016-12-09 01:16:27 -08:00
|
|
|
buildInputs =
|
2017-12-20 09:55:43 -08:00
|
|
|
[ boehmgc zlib sqlite pcre apacheHttpd apr aprutil
|
2019-09-22 00:38:09 -07:00
|
|
|
libmysqlclient mbedtls openssl libpthreadstubs ]
|
2016-12-11 09:11:24 -08:00
|
|
|
++ stdenv.lib.optional stdenv.isLinux gtk2
|
2016-12-09 01:16:27 -08:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
|
2016-12-11 09:11:24 -08:00
|
|
|
pkgs.darwin.apple_sdk.frameworks.Carbon];
|
|
|
|
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
|
2010-03-16 16:34:56 -07:00
|
|
|
|
2017-12-20 17:47:36 -08:00
|
|
|
installCheckPhase = ''
|
2016-12-09 01:16:27 -08:00
|
|
|
bin/neko bin/test.n
|
2009-11-29 17:05:07 -08:00
|
|
|
'';
|
|
|
|
|
2017-12-20 17:47:36 -08:00
|
|
|
doInstallCheck = true;
|
|
|
|
dontPatchELF = true;
|
2016-12-09 01:16:27 -08:00
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2012-10-07 02:18:25 -07:00
|
|
|
description = "A high-level dynamically typed programming language";
|
2018-06-23 04:34:55 -07:00
|
|
|
homepage = https://nekovm.org;
|
2016-12-09 01:16:27 -08:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.marcweber ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2009-11-29 17:05:07 -08:00
|
|
|
};
|
2012-10-07 02:18:25 -07:00
|
|
|
}
|