tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
librasterlite2: init at 1.1.0-beta1
Nikolay Korotkiy
3 years ago
08eb1cf0
360d74ec
+94
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
librasterlite2
default.nix
top-level
all-packages.nix
+90
pkgs/development/libraries/librasterlite2/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchurl
4
4
+
, pkg-config
5
5
+
, validatePkgConfig
6
6
+
, cairo
7
7
+
, curl
8
8
+
, fontconfig
9
9
+
, freetype
10
10
+
, freexl
11
11
+
, geos
12
12
+
, giflib
13
13
+
, libgeotiff
14
14
+
, libjpeg
15
15
+
, libpng
16
16
+
, librttopo
17
17
+
, libspatialite
18
18
+
, libtiff
19
19
+
, libwebp
20
20
+
, libxml2
21
21
+
, lz4
22
22
+
, minizip
23
23
+
, openjpeg
24
24
+
, pixman
25
25
+
, proj
26
26
+
, sqlite
27
27
+
, zstd
28
28
+
, ApplicationServices
29
29
+
}:
30
30
+
31
31
+
stdenv.mkDerivation rec {
32
32
+
pname = "librasterlite2";
33
33
+
version = "1.1.0-beta1";
34
34
+
35
35
+
src = fetchurl {
36
36
+
url = "https://www.gaia-gis.it/gaia-sins/librasterlite2-sources/librasterlite2-${version}.tar.gz";
37
37
+
hash = "sha256-9yhM38B600OjFOSHjfAwCHSwFF2dMxsGOwlrSC5+RPQ=";
38
38
+
};
39
39
+
40
40
+
# Fix error: unknown type name 'time_t'
41
41
+
postPatch = ''
42
42
+
sed -i '49i #include <time.h>' headers/rasterlite2_private.h
43
43
+
'';
44
44
+
45
45
+
nativeBuildInputs = [
46
46
+
pkg-config
47
47
+
validatePkgConfig
48
48
+
geos # for geos-config
49
49
+
];
50
50
+
51
51
+
buildInputs = [
52
52
+
cairo
53
53
+
curl
54
54
+
fontconfig
55
55
+
freetype
56
56
+
freexl
57
57
+
giflib
58
58
+
geos
59
59
+
libgeotiff
60
60
+
libjpeg
61
61
+
libpng
62
62
+
librttopo
63
63
+
libspatialite
64
64
+
libtiff
65
65
+
libwebp
66
66
+
libxml2
67
67
+
lz4
68
68
+
minizip
69
69
+
openjpeg
70
70
+
pixman
71
71
+
proj
72
72
+
sqlite
73
73
+
zstd
74
74
+
] ++ lib.optional stdenv.isDarwin ApplicationServices;
75
75
+
76
76
+
enableParallelBuilding = true;
77
77
+
78
78
+
# Failed tests:
79
79
+
# - check_sql_stmt
80
80
+
doCheck = false;
81
81
+
82
82
+
meta = with lib; {
83
83
+
description = "Advanced library supporting raster handling methods";
84
84
+
homepage = "https://www.gaia-gis.it/fossil/librasterlite2";
85
85
+
# They allow any of these
86
86
+
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
87
87
+
platforms = platforms.unix;
88
88
+
maintainers = with maintainers; [ sikmir ];
89
89
+
};
90
90
+
}
+4
pkgs/top-level/all-packages.nix
···
24621
24621
python = python3;
24622
24622
};
24623
24623
24624
24624
+
librasterlite2 = callPackage ../development/libraries/librasterlite2 {
24625
24625
+
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
24626
24626
+
};
24627
24627
+
24624
24628
libraw = callPackage ../development/libraries/libraw { };
24625
24629
libraw_unstable = callPackage ../development/libraries/libraw/unstable.nix { };
24626
24630