mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
Merge pull request #98186 from lopsided98/poco-propagate-deps
poco: propagate dependencies imported by CMake scripts
This commit is contained in:
commit
6f205e5ebc
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, cmake, pkg-config, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "poco";
|
||||
|
@ -10,9 +10,31 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1jilzh0h6ik5lr167nax7q6nrpzxl99p11pkl202ig06pgh32nbz";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Use GNUInstallDirs (https://github.com/pocoproject/poco/pull/3105)
|
||||
(fetchpatch {
|
||||
name = "use-gnuinstalldirs.patch";
|
||||
url = "https://github.com/pocoproject/poco/commit/9e8f84dff4575f01be02e0b07364efd1561ce66c.patch";
|
||||
sha256 = "1bj4i93gxr7pwx33bfyhg20ad4ak1rbxkrlpsgzk7rm6mh0mld26";
|
||||
# Files not included in release tarball
|
||||
excludes = [
|
||||
"Encodings/Compiler/CMakeLists.txt"
|
||||
"PocoDoc/CMakeLists.txt"
|
||||
"NetSSL_Win/CMakeLists.txt"
|
||||
"PDF/CMakeLists.txt"
|
||||
"SevenZip/CMakeLists.txt"
|
||||
"ApacheConnector/CMakeLists.txt"
|
||||
"CppParser/CMakeLists.txt"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysqlclient ];
|
||||
buildInputs = [ openssl unixODBC libmysqlclient ];
|
||||
propagatedBuildInputs = [ zlib pcre expat sqlite ];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
MYSQL_DIR = libmysqlclient;
|
||||
MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
|
||||
|
|
Loading…
Reference in a new issue