tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mapnik: init at 3.0.9
Christoph Hrdinka
10 years ago
2c54da93
16037c6d
+63
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
mapnik
default.nix
top-level
all-packages.nix
python-packages.nix
+40
pkgs/development/libraries/mapnik/default.nix
···
1
1
+
{ stdenv, fetchurl
2
2
+
, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
3
3
+
, libwebp, libxml2, proj, python, scons, sqlite, zlib
4
4
+
}:
5
5
+
6
6
+
stdenv.mkDerivation rec {
7
7
+
name = "mapnik-${version}";
8
8
+
version = "3.0.9";
9
9
+
10
10
+
src = fetchurl {
11
11
+
url = "https://mapnik.s3.amazonaws.com/dist/v${version}/mapnik-v${version}.tar.bz2";
12
12
+
sha256 = "1nnkamwq4vcg4q2lbqn7cn8sannxszzjxcxsllksby055d9nfgrs";
13
13
+
};
14
14
+
15
15
+
nativeBuildInputs = [ python scons ];
16
16
+
17
17
+
buildInputs =
18
18
+
[ boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
19
19
+
libwebp libxml2 proj python sqlite zlib
20
20
+
];
21
21
+
22
22
+
configurePhase = ''
23
23
+
scons configure PREFIX="$out"
24
24
+
'';
25
25
+
26
26
+
buildPhase = false;
27
27
+
28
28
+
installPhase = ''
29
29
+
mkdir -p "$out"
30
30
+
scons install
31
31
+
'';
32
32
+
33
33
+
meta = with stdenv.lib; {
34
34
+
description = "An open source toolkit for developing mapping applications";
35
35
+
homepage = http://mapnik.org;
36
36
+
maintainers = with maintainers; [ hrdinka ];
37
37
+
license = licenses.lgpl21;
38
38
+
platforms = platforms.all;
39
39
+
};
40
40
+
}
+2
pkgs/top-level/all-packages.nix
···
7711
7711
7712
7712
lzo = callPackage ../development/libraries/lzo { };
7713
7713
7714
7714
+
mapnik = callPackage ../development/libraries/mapnik { };
7715
7715
+
7714
7716
matio = callPackage ../development/libraries/matio { };
7715
7717
7716
7718
mbedtls = callPackage ../development/libraries/mbedtls { };
+21
pkgs/top-level/python-packages.nix
···
5075
5075
};
5076
5076
};
5077
5077
5078
5078
+
python-mapnik = buildPythonPackage {
5079
5079
+
name = "python-mapnik-fae6388";
5080
5080
+
5081
5081
+
src = pkgs.fetchgit {
5082
5082
+
url = https://github.com/mapnik/python-mapnik.git;
5083
5083
+
rev = "fae63881ed0945829e73f711d52740240b740936";
5084
5084
+
sha256 = "13i9zsy0dk9pa947vfq26a3nrn1ddknqliyb0ljcmi5w5x0z758k";
5085
5085
+
};
5086
5086
+
5087
5087
+
disabled = isPyPy;
5088
5088
+
doCheck = false; # doesn't find needed test data files
5089
5089
+
buildInputs = with pkgs; [ boost harfbuzz icu mapnik ];
5090
5090
+
propagatedBuildInputs = with self; [ pillow pycairo ];
5091
5091
+
5092
5092
+
meta = with stdenv.lib; {
5093
5093
+
description = "Python bindings for Mapnik";
5094
5094
+
homepage = http://mapnik.org;
5095
5095
+
license = licenses.lgpl21;
5096
5096
+
};
5097
5097
+
};
5098
5098
+
5078
5099
mwlib = buildPythonPackage rec {
5079
5100
version = "0.15.15";
5080
5101
name = "mwlib-${version}";