1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/mapnik/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

2015-12-02 20:27:32 +00:00
{ stdenv, fetchurl
, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
, libwebp, libxml2, proj, python, scons, sqlite, zlib
}:
stdenv.mkDerivation rec {
name = "mapnik-${version}";
2016-06-13 10:59:04 +01:00
version = "3.0.10";
2015-12-02 20:27:32 +00:00
src = fetchurl {
url = "https://mapnik.s3.amazonaws.com/dist/v${version}/mapnik-v${version}.tar.bz2";
2016-06-13 10:59:04 +01:00
sha256 = "0fda6syrfb81930sf7rgw1qmpnik8k1ngrjkh43ywd3s37nbqh1n";
2015-12-02 20:27:32 +00:00
};
outputs = [ "out" "dev" ];
2016-06-13 10:59:04 +01:00
2015-12-02 20:27:32 +00:00
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;
};
}