Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, validatePkgConfig, postgresql, sqlite }: 2 3stdenv.mkDerivation rec { 4 pname = "virtualpg"; 5 version = "2.0.1"; 6 7 src = fetchurl { 8 url = "https://www.gaia-gis.it/gaia-sins/virtualpg-${version}.tar.gz"; 9 hash = "sha256-virr64yf8nQ4IIX1HUIugjhYvKT2vC+pCYFkZMah4Is="; 10 }; 11 12 nativeBuildInputs = [ 13 validatePkgConfig 14 postgresql # for pg_config 15 ]; 16 17 buildInputs = [ postgresql sqlite ]; 18 19 meta = with lib; { 20 description = "Loadable dynamic extension to both SQLite and SpatiaLite"; 21 homepage = "https://www.gaia-gis.it/fossil/virtualpg"; 22 license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ]; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ sikmir ]; 25 }; 26}