Files
nixpkgs/pkgs/by-name/ne/neko/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

92 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
boehmgc,
zlib,
sqlite,
pcre2,
cmake,
pkg-config,
git,
apacheHttpd,
apr,
aprutil,
libmysqlclient,
mbedtls,
openssl,
gtk3,
libpthreadstubs,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "neko";
version = "2.4.1";
src = fetchFromGitHub {
owner = "HaxeFoundation";
repo = "neko";
rev = "v${lib.replaceStrings [ "." ] [ "-" ] version}";
hash = "sha256-cTu+AlDnpXAow6jM77Ct9DM8p//z6N1utk7Wsd+0g9U=";
};
nativeBuildInputs = [
cmake
pkg-config
git
];
buildInputs = [
boehmgc
zlib
sqlite
pcre2
apacheHttpd
apr
aprutil
libmysqlclient
mbedtls
openssl
libpthreadstubs
]
++ lib.optional stdenv.hostPlatform.isLinux gtk3;
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
installCheckPhase = ''
bin/neko bin/test.n
'';
# Called from tools/test.neko line 2
# Uncaught exception - Segmentation fault
doInstallCheck = !stdenv.hostPlatform.isDarwin;
dontPatchELF = true;
dontStrip = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "High-level dynamically typed programming language";
homepage = "https://nekovm.org";
license = [
# list based on https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE
lib.licenses.gpl2Plus # nekoc, nekoml
lib.licenses.lgpl21Plus # mysql.ndll
lib.licenses.bsd3 # regexp.ndll
lib.licenses.zlib # zlib.ndll
lib.licenses.asl20 # mod_neko, mod_tora, mbedTLS
lib.licenses.mit # overall, other libs
lib.licenses.boehmGC # boehm gc
];
maintainers = with lib.maintainers; [
marcweber
locallycompact
];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
};
}