Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 40 lines 1.0 kB view raw
1{ stdenv, fetchurl 2, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff 3, libwebp, libxml2, proj, python, scons, sqlite, zlib 4}: 5 6stdenv.mkDerivation rec { 7 name = "mapnik-${version}"; 8 version = "3.0.9"; 9 10 src = fetchurl { 11 url = "https://mapnik.s3.amazonaws.com/dist/v${version}/mapnik-v${version}.tar.bz2"; 12 sha256 = "1nnkamwq4vcg4q2lbqn7cn8sannxszzjxcxsllksby055d9nfgrs"; 13 }; 14 15 nativeBuildInputs = [ python scons ]; 16 17 buildInputs = 18 [ boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff 19 libwebp libxml2 proj python sqlite zlib 20 ]; 21 22 configurePhase = '' 23 scons configure PREFIX="$out" 24 ''; 25 26 buildPhase = false; 27 28 installPhase = '' 29 mkdir -p "$out" 30 scons install 31 ''; 32 33 meta = with stdenv.lib; { 34 description = "An open source toolkit for developing mapping applications"; 35 homepage = http://mapnik.org; 36 maintainers = with maintainers; [ hrdinka ]; 37 license = licenses.lgpl21; 38 platforms = platforms.all; 39 }; 40}