cctz: enable for darwin

only minor tweaks needed
This commit is contained in:
Robert Scott 2019-06-02 12:01:30 +01:00
parent bc26695334
commit f8c2a8461e

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; {