1 { lib, stdenv, fetchurl, validatePkgConfig, postgresql, sqlite, darwin }:
3 stdenv.mkDerivation rec {
8 url = "https://www.gaia-gis.it/gaia-sins/virtualpg-${version}.tar.gz";
9 hash = "sha256-virr64yf8nQ4IIX1HUIugjhYvKT2vC+pCYFkZMah4Is=";
14 postgresql # for pg_config
17 buildInputs = [ postgresql sqlite ]
18 ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Kerberos ];
21 description = "Loadable dynamic extension to both SQLite and SpatiaLite";
22 homepage = "https://www.gaia-gis.it/fossil/virtualpg";
23 license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ];
24 platforms = platforms.unix;
25 maintainers = with maintainers; [ sikmir ];