Unverified Commit afeb3385 authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #206121 from Radvendii/fix-mod_tile

apacheHttpdPackages.mod_tile fix
parents be5319d1 30f13efe
Loading
Loading
Loading
Loading
+39 −2
Original line number Diff line number Diff line
{ 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"