cctz: enable for darwin
only minor tweaks needed
This commit is contained in:
parent
bc26695334
commit
f8c2a8461e
1 changed files with 7 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue