diff --git a/pkgs/development/libraries/virtualpg/default.nix b/pkgs/development/libraries/virtualpg/default.nix new file mode 100644 index 000000000000..277ca47d66e3 --- /dev/null +++ b/pkgs/development/libraries/virtualpg/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchurl, validatePkgConfig, postgresql, sqlite }: + +stdenv.mkDerivation rec { + pname = "virtualpg"; + version = "2.0.1"; + + src = fetchurl { + url = "https://www.gaia-gis.it/gaia-sins/virtualpg-${version}.tar.gz"; + hash = "sha256-virr64yf8nQ4IIX1HUIugjhYvKT2vC+pCYFkZMah4Is="; + }; + + nativeBuildInputs = [ + validatePkgConfig + postgresql # for pg_config + ]; + + buildInputs = [ postgresql sqlite ]; + + meta = with lib; { + description = "Loadable dynamic extension to both SQLite and SpatiaLite"; + homepage = "https://www.gaia-gis.it/fossil/virtualpg"; + license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ]; + platforms = platforms.unix; + maintainers = with maintainers; [ sikmir ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 184ed582f1c6..2419337a44dd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22179,6 +22179,8 @@ with pkgs; vlock = callPackage ../misc/screensavers/vlock { }; + virtualpg = callPackage ../development/libraries/virtualpg { }; + vmime = callPackage ../development/libraries/vmime { }; vrb = callPackage ../development/libraries/vrb { };