nixpkgs/pkgs/development/compilers/neko/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2016-12-09 09:16:27 +00:00
{ stdenv, fetchurl, fetchpatch, boehmgc, zlib, sqlite, pcre, cmake, pkgconfig
, git, apacheHttpd, apr, aprutil, mariadb, mbedtls, openssl, pkgs, gtk2
}:
stdenv.mkDerivation rec {
name = "neko-${version}";
2016-12-09 09:16:27 +00:00
version = "2.1.0";
src = fetchurl {
2016-12-09 09:16:27 +00:00
url = "http://nekovm.org/media/neko-${version}-src.tar.gz";
sha256 = "15ng9ad0jspnhj38csli1pvsv3nxm75f0nlps7i10194jvzdb4qc";
};
2016-12-09 09:16:27 +00:00
buildInputs =
[ boehmgc zlib sqlite pcre cmake pkgconfig git apacheHttpd apr aprutil
mariadb.client mbedtls openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.Carbon]
++ stdenv.lib.optional stdenv.isLinux gtk2;
2016-12-09 09:16:27 +00:00
prePatch = ''
sed -i -e '/allocated = strdup/s|"[^"]*"|"'"$out/lib/neko:$out/bin"'"|' vm/load.c
'';
2016-12-09 09:16:27 +00:00
checkPhase = ''
bin/neko bin/test.n
'';
2016-12-09 09:16:27 +00:00
dontStrip = true;
meta = with stdenv.lib; {
description = "A high-level dynamically typed programming language";
homepage = http://nekovm.org;
2016-12-09 09:16:27 +00:00
license = licenses.lgpl21;
maintainers = [ maintainers.marcweber ];
platforms = platforms.linux ++ platforms.darwin;
};
}
2016-12-09 09:16:27 +00:00