summary refs log tree commit diff
path: root/pkgs/development/libraries/mapnik
diff options
context:
space:
mode:
authorChristoph Hrdinka <c.github@hrdinka.at>2015-12-02 21:27:32 +0100
committerChristoph Hrdinka <c.github@hrdinka.at>2015-12-04 18:03:16 +0100
commit2c54da93ef727b366433d112e78b4d4a1bd2fb6d (patch)
tree5c43bbfa4cdd7d96700741dea10a1b3a99ec17af /pkgs/development/libraries/mapnik
parent16037c6df5d99d8f19a46f686a63072ab071d69b (diff)
downloadnixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.tar
nixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.tar.gz
nixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.tar.bz2
nixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.tar.lz
nixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.tar.xz
nixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.tar.zst
nixpkgs-2c54da93ef727b366433d112e78b4d4a1bd2fb6d.zip
mapnik: init at 3.0.9
Diffstat (limited to 'pkgs/development/libraries/mapnik')
-rw-r--r--pkgs/development/libraries/mapnik/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mapnik/default.nix b/pkgs/development/libraries/mapnik/default.nix
new file mode 100644
index 00000000000..4f0311f9d92
--- /dev/null
+++ b/pkgs/development/libraries/mapnik/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl
+, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
+, libwebp, libxml2, proj, python, scons, sqlite, zlib
+}:
+
+stdenv.mkDerivation rec {
+  name = "mapnik-${version}";
+  version = "3.0.9";
+
+  src = fetchurl {
+    url = "https://mapnik.s3.amazonaws.com/dist/v${version}/mapnik-v${version}.tar.bz2";
+    sha256 = "1nnkamwq4vcg4q2lbqn7cn8sannxszzjxcxsllksby055d9nfgrs";
+  };
+
+  nativeBuildInputs = [ python scons ];
+
+  buildInputs =
+    [ boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
+      libwebp libxml2 proj python sqlite zlib
+    ];
+
+  configurePhase = ''
+    scons configure PREFIX="$out"
+  '';
+
+  buildPhase = false;
+
+  installPhase = ''
+    mkdir -p "$out"
+    scons install
+  '';
+
+  meta = with stdenv.lib; {
+    description = "An open source toolkit for developing mapping applications";
+    homepage = http://mapnik.org;
+    maintainers = with maintainers; [ hrdinka ];
+    license = licenses.lgpl21;
+    platforms = platforms.all;
+  };
+}