luasocket: enable hydra build on more platforms

Signed-off-by: Jörg Thalheim <joerg@higgsboson.tk>
This commit is contained in:
Jörg Thalheim 2016-09-17 13:14:54 +02:00
parent 50d2b3ca11
commit cdbb0e2fb8
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -197,15 +197,18 @@ let
preBuild = '' preBuild = ''
makeFlagsArray=( makeFlagsArray=(
LUAV=${lua.luaversion} LUAV=${lua.luaversion}
PLAT=${if stdenv.isDarwin then "macosx" else "linux"} PLAT=${if stdenv.isDarwin then "macosx"
LUAPREFIX_linux=$out else if stdenv.isFreeBSD then "freebsd"
LUAPREFIX_macosx=$out else if stdenv.isLinux then "linux"
else if stdenv.isSunOS then "solaris"
else throw "unsupported platform"}
prefix=$out
); );
''; '';
meta = { meta = {
homepage = "http://w3.impa.br/~diego/software/luasocket/"; homepage = "http://w3.impa.br/~diego/software/luasocket/";
hydraPlatforms = stdenv.lib.platforms.linux; hydraPlatforms = with platforms; [darwin linux freebsd illumos];
maintainers = with maintainers; [ mornfall ]; maintainers = with maintainers; [ mornfall ];
}; };
}; };