9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, boehmgc, zlib, sqlite, pcre, cmake, pkg-config
|
|
, git, apacheHttpd, apr, aprutil, libmysqlclient, mbedtls, openssl, pkgs, gtk2, libpthreadstubs
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "neko";
|
|
version = "2.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://nekovm.org/media/neko-${version}-src.tar.gz";
|
|
sha256 = "1qv47zaa0vzhjlq5wb71627n7dbsxpc1gqpg0hsngjxnbnh1q46g";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config git ];
|
|
buildInputs =
|
|
[ boehmgc zlib sqlite pcre apacheHttpd apr aprutil
|
|
libmysqlclient mbedtls openssl libpthreadstubs ]
|
|
++ stdenv.lib.optional stdenv.isLinux gtk2
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
|
|
pkgs.darwin.apple_sdk.frameworks.Carbon];
|
|
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
|
|
|
|
installCheckPhase = ''
|
|
bin/neko bin/test.n
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
dontPatchELF = true;
|
|
dontStrip = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A high-level dynamically typed programming language";
|
|
homepage = "https://nekovm.org";
|
|
license = licenses.lgpl21;
|
|
maintainers = [ maintainers.marcweber ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|