apacheHttpdPackages.mod_tile fix

This commit is contained in:
Taeer Bar-Yam 2022-12-14 13:47:50 -05:00
parent 47cd8c9948
commit 30f13efe8d

View file

@ -1,4 +1,22 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, apacheHttpd, apr, cairo, iniparser, mapnik }:
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, apacheHttpd
, apr
, cairo
, iniparser
, mapnik
, boost
, icu
, harfbuzz
, libjpeg
, libtiff
, libwebp
, proj
, sqlite
}:
stdenv.mkDerivation rec {
pname = "mod_tile";
@ -21,8 +39,27 @@ stdenv.mkDerivation rec {
})
];
# test is broken and I couldn't figure out a better way to disable it.
postPatch = ''
echo "int main(){return 0;}" > src/gen_tile_test.cpp
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ apacheHttpd apr cairo iniparser mapnik ];
buildInputs = [
apacheHttpd
apr
cairo
iniparser
mapnik
boost
icu
harfbuzz
libjpeg
libtiff
libwebp
proj
sqlite
];
configureFlags = [
"--with-apxs=${apacheHttpd.dev}/bin/apxs"