about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@disroot.org>2022-09-17 23:02:37 +0300
committerNikolay Korotkiy <sikmir@disroot.org>2022-09-18 01:04:23 +0300
commit53be5fd7ef1d1eb0a95866a9f7ac2e7552ae5877 (patch)
treeff6248e48b140edfb9882de9a92fd0411cffcc32
parent21d687b0a4f401d735ab887182efee7138131415 (diff)
readosm: enable on darwin
-rw-r--r--pkgs/development/libraries/readosm/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/development/libraries/readosm/default.nix b/pkgs/development/libraries/readosm/default.nix
index f177dc768a69c..8ba1f571b0287 100644
--- a/pkgs/development/libraries/readosm/default.nix
+++ b/pkgs/development/libraries/readosm/default.nix
@@ -1,24 +1,26 @@
-{ lib, stdenv, fetchurl, expat, zlib, geos, libspatialite }:
+{ lib, stdenv, fetchurl, expat, zlib, validatePkgConfig }:
 
 stdenv.mkDerivation rec {
   pname = "readosm";
   version = "1.1.0a";
 
   src = fetchurl {
-    url = "https://www.gaia-gis.it/gaia-sins/readosm-sources/${pname}-${version}.tar.gz";
-    sha256 = "0igif2bxf4dr82glxz9gyx5mmni0r2dsnx9p9k6pxv3c4lfhaz6v";
+    url = "https://www.gaia-gis.it/gaia-sins/readosm-${version}.tar.gz";
+    hash = "sha256-23wFHSVs7H7NTDd1q5vIINpaS/cv/U6fQLkR15dw8UU=";
   };
 
-  buildInputs = [ expat zlib geos libspatialite ];
+  nativeBuildInputs = [ validatePkgConfig ];
 
-  configureFlags = [ "--disable-freexl" ];
+  buildInputs = [ expat zlib ];
 
   enableParallelBuilding = true;
 
-  meta = {
+  doCheck = true;
+
+  meta = with lib; {
     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;
+    license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ];
+    platforms = platforms.unix;
   };
 }