mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
neko: 2.3.0 -> 2.4.1, modernize
Diff: https://github.com/HaxeFoundation/neko/compare/v2-3-0...v2-4-1 pcre was updated to pcre2 https://github.com/HaxeFoundation/neko/pull/249 gtk2 was updated to gtk3 in https://github.com/HaxeFoundation/neko/pull/220 cmake was updated to now request 3.10+ in https://github.com/HaxeFoundation/neko/pull/267 mbedtls_2 was updated to mbedtls_3 in https://github.com/HaxeFoundation/neko/pull/290 m1 builds were fixed in https://github.com/HaxeFoundation/neko/pull/224
This commit is contained in:
parent
886356e9f8
commit
50f9eb473b
1 changed files with 24 additions and 29 deletions
|
@ -2,11 +2,10 @@
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
fetchpatch,
|
|
||||||
boehmgc,
|
boehmgc,
|
||||||
zlib,
|
zlib,
|
||||||
sqlite,
|
sqlite,
|
||||||
pcre,
|
pcre2,
|
||||||
cmake,
|
cmake,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
git,
|
git,
|
||||||
|
@ -14,32 +13,24 @@
|
||||||
apr,
|
apr,
|
||||||
aprutil,
|
aprutil,
|
||||||
libmysqlclient,
|
libmysqlclient,
|
||||||
mbedtls_2,
|
mbedtls,
|
||||||
openssl,
|
openssl,
|
||||||
pkgs,
|
gtk3,
|
||||||
gtk2,
|
|
||||||
libpthreadstubs,
|
libpthreadstubs,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "neko";
|
pname = "neko";
|
||||||
version = "2.3.0";
|
version = "2.4.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "HaxeFoundation";
|
owner = "HaxeFoundation";
|
||||||
repo = "neko";
|
repo = "neko";
|
||||||
rev = "v${lib.replaceStrings [ "." ] [ "-" ] version}";
|
rev = "v${lib.replaceStrings [ "." ] [ "-" ] version}";
|
||||||
sha256 = "19rc59cx7qqhcqlb0znwbnwbg04c1yq6xmvrwm1xi46k3vxa957g";
|
hash = "sha256-cTu+AlDnpXAow6jM77Ct9DM8p//z6N1utk7Wsd+0g9U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# https://github.com/HaxeFoundation/neko/pull/224
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/HaxeFoundation/neko/commit/ff5da9b0e96cc0eabc44ad2c10b7a92623ba49ee.patch";
|
|
||||||
sha256 = "sha256-isM7QGPiyXgT2zpIGd+r12vKg7I1rOWYTTWxuECafro=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -49,16 +40,17 @@ stdenv.mkDerivation rec {
|
||||||
boehmgc
|
boehmgc
|
||||||
zlib
|
zlib
|
||||||
sqlite
|
sqlite
|
||||||
pcre
|
pcre2
|
||||||
apacheHttpd
|
apacheHttpd
|
||||||
apr
|
apr
|
||||||
aprutil
|
aprutil
|
||||||
libmysqlclient
|
libmysqlclient
|
||||||
mbedtls_2
|
mbedtls
|
||||||
openssl
|
openssl
|
||||||
libpthreadstubs
|
libpthreadstubs
|
||||||
] ++ lib.optional stdenv.hostPlatform.isLinux gtk2;
|
] ++ lib.optional stdenv.hostPlatform.isLinux gtk3;
|
||||||
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
|
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
|
||||||
|
|
||||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
||||||
};
|
};
|
||||||
|
@ -73,23 +65,26 @@ stdenv.mkDerivation rec {
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
meta = with lib; {
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "High-level dynamically typed programming language";
|
description = "High-level dynamically typed programming language";
|
||||||
homepage = "https://nekovm.org";
|
homepage = "https://nekovm.org";
|
||||||
license = [
|
license = [
|
||||||
# list based on https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE
|
# list based on https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE
|
||||||
licenses.gpl2Plus # nekoc, nekoml
|
lib.licenses.gpl2Plus # nekoc, nekoml
|
||||||
licenses.lgpl21Plus # mysql.ndll
|
lib.licenses.lgpl21Plus # mysql.ndll
|
||||||
licenses.bsd3 # regexp.ndll
|
lib.licenses.bsd3 # regexp.ndll
|
||||||
licenses.zlib # zlib.ndll
|
lib.licenses.zlib # zlib.ndll
|
||||||
licenses.asl20 # mod_neko, mod_tora, mbedTLS
|
lib.licenses.asl20 # mod_neko, mod_tora, mbedTLS
|
||||||
licenses.mit # overall, other libs
|
lib.licenses.mit # overall, other libs
|
||||||
"https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE#L24-L40" # boehm gc
|
"https://github.com/HaxeFoundation/neko/blob/v2-3-0/LICENSE#L24-L40" # boehm gc
|
||||||
];
|
];
|
||||||
maintainers = [
|
maintainers = with lib.maintainers; [
|
||||||
maintainers.marcweber
|
marcweber
|
||||||
maintainers.locallycompact
|
locallycompact
|
||||||
];
|
];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
|
broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue