Merge pull request #67503 from risicle/ris-poco-cctz-darwin

poco, cctz: enable for darwin
This commit is contained in:
Marek Mahut 2019-08-27 10:08:52 +02:00 committed by GitHub
commit 761cfbf986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, darwin }:
stdenv.mkDerivation rec {
name = "cctz-${version}";
@ -13,8 +13,14 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Foundation;
installTargets = [ "install_hdrs" "install_shared_lib" ];
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libcctz.so $out/lib/libcctz.so
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {

View file

@ -28,6 +28,5 @@ stdenv.mkDerivation rec {
description = "Cross-platform C++ libraries with a network/internet focus";
license = licenses.boost;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}