-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
/
default.nix
52 lines (44 loc) · 1001 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, stdenv
, fetchurl
, pkg-config
, geos
, expat
, librttopo
, libspatialite
, libxml2
, minizip
, proj
, readosm
, sqlite
}:
stdenv.mkDerivation rec {
pname = "spatialite-tools";
version = "5.0.1";
src = fetchurl {
url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/${pname}-${version}.tar.gz";
sha256 = "sha256-lgTCBeh/A3eJvFIwLGbM0TccPpjHTo7E4psHUt41Fxw=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
expat
geos
librttopo
libspatialite
libxml2
minizip
proj
readosm
sqlite
];
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;
NIX_LDFLAGS = "-lsqlite3";
meta = with lib; {
description = "A complete sqlite3-compatible CLI front-end for libspatialite";
homepage = "https://www.gaia-gis.it/fossil/spatialite-tools";
license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ dotlambda ];
};
}