mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
8e7442b3ed
Hydra builds run only on Linux, but all other platforms can build LUA, too, if necessary.
27 lines
671 B
Nix
27 lines
671 B
Nix
{ stdenv, fetchurl, lua5 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.6.2";
|
|
name = "lua-filesystem-${version}";
|
|
isLibrary = true;
|
|
src = fetchurl {
|
|
url = "https://github.com/keplerproject/luafilesystem/archive/v1_6_2.tar.gz";
|
|
sha256 = "1n8qdwa20ypbrny99vhkmx8q04zd2jjycdb5196xdhgvqzk10abz";
|
|
};
|
|
|
|
buildInputs = [ lua5 ];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(
|
|
PREFIX=$out
|
|
LUA_LIBDIR="$out/lib/lua/${lua5.luaversion}"
|
|
LUA_INC="-I${lua5}/include");
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/keplerproject/luafilesystem";
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.flosse ];
|
|
};
|
|
}
|