mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
cctz: enable for darwin
only minor tweaks needed
This commit is contained in:
parent
bc26695334
commit
f8c2a8461e
@ -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 New Issue
Block a user