3
0
Fork 0
forked from mirrors/nixpkgs

luaPackages.cqueues: move to generated

This commit is contained in:
Matthieu Coudron 2019-02-06 00:54:37 +09:00
parent 84d4faf8d5
commit c01fe375ca
4 changed files with 34 additions and 23 deletions

View file

@ -1,6 +1,7 @@
ansicolors,
argparse,
basexx,
cqueues
dkjson
fifo
inspect

1 ansicolors,
2 argparse,
3 basexx,
4 cqueues
5 dkjson
6 fifo
7 inspect

View file

@ -70,6 +70,26 @@ basexx = buildLuarocksPackage {
};
};
};
cqueues = buildLuarocksPackage {
pname = "cqueues";
version = "20171014.52-0";
src = fetchurl {
url = https://luarocks.org/cqueues-20171014.52-0.src.rock;
sha256 = "0q3iy1ja20nq2sn2n6badzhjq5kni86pfc09n5g2c46q9ja3vfzx";
};
disabled = ( lua.luaversion != "5.2");
propagatedBuildInputs = [lua ];
buildType="make";
meta = {
homepage = "http://25thandclement.com/~william/projects/cqueues.html";
description="Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua on Unix.";
license = {
fullName = "MIT/X11";
};
};
};
dkjson = buildLuarocksPackage {
pname = "dkjson";
version = "2.5-2";

View file

@ -5,6 +5,19 @@ with super;
##########################################3
#### manual fixes for generated packages
##########################################3
cqueues = super.cqueues.override({
nativeBuildInputs = [ pkgs.gnum4 ];
buildInputs = [ pkgs.openssl ];
extraConfig = with pkgs; ''
variables={
CRYPTO_INCDIR="${openssl.dev}/include";
CRYPTO_LIBDIR="${openssl.out}/lib";
OPENSSL_INCDIR="${openssl.dev}/include";
OPENSSL_LIBDIR="${openssl.out}/lib";
}
'';
});
ltermbox = super.ltermbox.override( {
disabled = !isLua51 || isLuaJIT;

View file

@ -167,29 +167,6 @@ with self; {
};
};
cqueues = buildLuaPackage rec {
name = "cqueues-${version}";
version = "20171014";
src = fetchurl {
url = "https://www.25thandclement.com/~william/projects/releases/${name}.tgz";
sha256 = "1dabhpn6r0hlln8vx9hxm34pfcm46qzgpb2apmziwg5z51fi4ksb";
};
preConfigure = ''export prefix=$out'';
nativeBuildInputs = [ gnum4 ];
buildInputs = [ openssl ];
meta = with stdenv.lib; {
description = "A type of event loop for Lua";
homepage = "https://www.25thandclement.com/~william/projects/cqueues.html";
license = licenses.mit;
maintainers = with maintainers; [ vcunat ];
platforms = platforms.unix;
};
};
luabitop = buildLuaPackage rec {
version = "1.0.2";
name = "bitop-${version}";