nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 33 lines 898 B view raw
1{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, mysql }: 2 3stdenv.mkDerivation rec { 4 name = "poco-${version}"; 5 6 version = "1.9.0"; 7 8 src = fetchurl { 9 url = "https://pocoproject.org/releases/${name}/${name}-all.tar.gz"; 10 sha256 = "11z1i0drbacs7c7d5virc3kz7wh79svd06iffh8j6giikl7vz1q3"; 11 }; 12 13 nativeBuildInputs = [ cmake pkgconfig ]; 14 15 buildInputs = [ zlib pcre expat sqlite openssl unixODBC mysql.connector-c ]; 16 17 MYSQL_DIR = mysql.connector-c; 18 MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql"; 19 20 cmakeFlags = [ 21 "-DPOCO_UNBUNDLED=ON" 22 ]; 23 24 enableParallelBuilding = true; 25 26 meta = with stdenv.lib; { 27 homepage = https://pocoproject.org/; 28 description = "Cross-platform C++ libraries with a network/internet focus"; 29 license = licenses.boost; 30 maintainers = with maintainers; [ orivej ]; 31 platforms = platforms.linux; 32 }; 33}