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

39 lines
1.2 KiB
Nix
Raw Normal View History

2017-12-20 18:55:43 +01:00
{ stdenv, fetchurl, boehmgc, zlib, sqlite, pcre, cmake, pkgconfig
, git, apacheHttpd, apr, aprutil, mysql, mbedtls, openssl, pkgs, gtk2, libpthreadstubs
2016-12-09 10:16:27 +01:00
}:
stdenv.mkDerivation rec {
name = "neko-${version}";
2017-12-20 18:55:43 +01:00
version = "2.2.0";
src = fetchurl {
url = "https://nekovm.org/media/neko-${version}-src.tar.gz";
2017-12-20 18:55:43 +01:00
sha256 = "1qv47zaa0vzhjlq5wb71627n7dbsxpc1gqpg0hsngjxnbnh1q46g";
};
2017-12-20 18:55:43 +01:00
nativeBuildInputs = [ cmake pkgconfig 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
mysql.connector-c mbedtls openssl libpthreadstubs ]
++ stdenv.lib.optional stdenv.isLinux gtk2
2016-12-09 10:16:27 +01:00
++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.Carbon];
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
installCheckPhase = ''
2016-12-09 10:16:27 +01:00
bin/neko bin/test.n
'';
doInstallCheck = true;
dontPatchELF = true;
2016-12-09 10:16:27 +01:00
dontStrip = true;
meta = with stdenv.lib; {
description = "A high-level dynamically typed programming language";
homepage = http://nekovm.org;
2016-12-09 10:16:27 +01:00
license = licenses.lgpl21;
maintainers = [ maintainers.marcweber ];
platforms = platforms.linux ++ platforms.darwin;
};
}