mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 21:14:52 +00:00
spatialite-tools: enable on darwin
This commit is contained in:
parent
53be5fd7ef
commit
0b8725c728
@ -49,13 +49,15 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
# Failed tests (linux & darwin):
|
||||
# - check_extension
|
||||
# - check_sql_stmt_extension
|
||||
# - check_virtualtable6
|
||||
# - check_drop_rename
|
||||
# - check_get_normal_zoom_extension_load
|
||||
doCheck = false;
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$(pwd)/src/.libs
|
||||
export DYLD_LIBRARY_PATH=$(pwd)/src/.libs
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Extensible spatial index library in C++";
|
||||
homepage = "https://www.gaia-gis.it/fossil/libspatialite";
|
||||
|
@ -2,6 +2,7 @@
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, freexl
|
||||
, geos
|
||||
, expat
|
||||
, librttopo
|
||||
@ -11,6 +12,8 @@
|
||||
, proj
|
||||
, readosm
|
||||
, sqlite
|
||||
, testers
|
||||
, spatialite_tools
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -18,14 +21,15 @@ stdenv.mkDerivation rec {
|
||||
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=";
|
||||
url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-${version}.tar.gz";
|
||||
hash = "sha256-lgTCBeh/A3eJvFIwLGbM0TccPpjHTo7E4psHUt41Fxw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
expat
|
||||
freexl
|
||||
geos
|
||||
librttopo
|
||||
libspatialite
|
||||
@ -36,17 +40,20 @@ stdenv.mkDerivation rec {
|
||||
sqlite
|
||||
];
|
||||
|
||||
configureFlags = [ "--disable-freexl" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
NIX_LDFLAGS = "-lsqlite3";
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = spatialite_tools;
|
||||
command = "! spatialite_tool --version";
|
||||
version = "${libspatialite.version}";
|
||||
};
|
||||
|
||||
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;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
mainProgram = "spatialite_tool";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user