Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 16.09 28 lines 741 B view raw
1{ pkgs, stdenv, fetchurl, lua5_1, zziplib }: 2 3stdenv.mkDerivation rec { 4 version = "1.2.3"; 5 name = "lua-zip-${version}"; 6 isLibrary = true; 7 src = fetchurl { 8 url = "https://github.com/luaforge/luazip/archive/0b8f5c958e170b1b49f05bc267bc0351ad4dfc44.zip"; 9 sha256 = "beb9260d606fdd5304aa958d95f0d3c20be7ca0a2cff44e7b75281c138a76a50"; 10 }; 11 12 buildInputs = [ pkgs.unzip lua5_1 zziplib ]; 13 14 preBuild = '' 15 makeFlagsArray=( 16 PREFIX=$out 17 LUA_LIBDIR="$out/lib/lua/${lua5_1.luaversion}" 18 LUA_INC="-I${lua5_1}/include"); 19 ''; 20 21 patches = [ ./zip.patch ]; 22 23 meta = { 24 homepage = "https://github.com/luaforge/luazip"; 25 hydraPlatforms = stdenv.lib.platforms.linux; 26 license = stdenv.lib.licenses.mit; 27 }; 28}