depot/third_party/nixpkgs/pkgs/development/interpreters/lua-5/filesystem.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
627 B
Nix

{ stdenv, fetchurl, lua5 }:
stdenv.mkDerivation {
version = "1.6.2";
pname = "lua-filesystem";
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 = [ ];
};
}