mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
35 lines
938 B
Nix
35 lines
938 B
Nix
{ stdenv, lib, fetchurl, pkg-config, libxml2, sqlite, zlib, proj, geos, libiconv }:
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libspatialite-4.3.0a";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
|
|
sha256 = "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
|
|
|
|
configureFlags = [ "--disable-freexl" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
CFLAGS = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";
|
|
|
|
postInstall = "" + optionalString stdenv.isDarwin ''
|
|
ln -s $out/lib/mod_spatialite.{so,dylib}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Extensible spatial index library in C++";
|
|
homepage = "https://www.gaia-gis.it/fossil/libspatialite";
|
|
# They allow any of these
|
|
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|