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