about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/readosm
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/readosm')
-rw-r--r--nixpkgs/pkgs/development/libraries/readosm/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/readosm/default.nix b/nixpkgs/pkgs/development/libraries/readosm/default.nix
new file mode 100644
index 000000000000..760546fc471c
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/readosm/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchurl, expat, zlib, geos, libspatialite }:
+
+stdenv.mkDerivation rec {
+  name = "readosm-1.1.0a";
+
+  src = fetchurl {
+    url = "https://www.gaia-gis.it/gaia-sins/readosm-sources/${name}.tar.gz";
+    sha256 = "0igif2bxf4dr82glxz9gyx5mmni0r2dsnx9p9k6pxv3c4lfhaz6v";
+  };
+
+  buildInputs = [ expat zlib geos libspatialite ];
+
+  configureFlags = [ "--disable-freexl" ];
+
+  enableParallelBuilding = true;
+
+  meta = {
+    description = "An open source library to extract valid data from within an Open Street Map input file";
+    homepage = "https://www.gaia-gis.it/fossil/readosm";
+    license = with lib.licenses; [ mpl11 gpl2Plus lgpl21Plus ];
+    platforms = lib.platforms.linux;
+  };
+}