Merge pull request #247165 from wegank/loudmouth-darwin

loudmouth: fix build on x86_64-darwin

authored by

7c6f434c and committed by
GitHub
051413fb f9e7c7f7

+6 -4
+6 -4
pkgs/development/libraries/loudmouth/default.nix
··· 1 - { lib, stdenv, fetchurl, openssl, libidn, glib, pkg-config, zlib }: 1 + { lib, stdenv, fetchurl, openssl, libidn, glib, pkg-config, zlib, darwin }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "1.5.3"; ··· 8 8 url = "https://mcabber.com/files/loudmouth/${pname}-${version}.tar.bz2"; 9 9 sha256 = "0b6kd5gpndl9nzis3n6hcl0ldz74bnbiypqgqa1vgb0vrcar8cjl"; 10 10 }; 11 - 12 - patches = [ 13 - ]; 14 11 15 12 configureFlags = [ "--with-ssl=openssl" ]; 16 13 17 14 propagatedBuildInputs = [ openssl libidn glib zlib ]; 18 15 19 16 nativeBuildInputs = [ pkg-config ]; 17 + 18 + buildInputs = lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11") [ 19 + darwin.apple_sdk.frameworks.AppKit 20 + darwin.apple_sdk.frameworks.Foundation 21 + ]; 20 22 21 23 meta = with lib; { 22 24 description = "A lightweight C library for the Jabber protocol";