21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
26 owner = "openstreetmap";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-zXUwTG8cqAkY5MC1jAc2TtMgNMQPLc5nc22okVYP4ME=";
52 enableParallelBuilding = true;
54 # Explicitly specify directory paths
56 (lib.cmakeFeature "CMAKE_INSTALL_BINDIR" "bin")
57 (lib.cmakeFeature "CMAKE_INSTALL_MANDIR" "share/man")
58 (lib.cmakeFeature "CMAKE_INSTALL_MODULESDIR" "modules")
59 (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "")
60 (lib.cmakeBool "ENABLE_TESTS" doCheck)
63 # And use DESTDIR to define the install destination
64 installFlags = [ "DESTDIR=$(out)" ];
68 passthru.updateScript = nix-update-script { };
71 homepage = "https://github.com/openstreetmap/mod_tile";
72 description = "Efficiently render and serve OpenStreetMap tiles using Apache and Mapnik";
73 license = licenses.gpl2;
74 maintainers = with maintainers; [ jglukasik ];
75 platforms = platforms.linux;