Merge pull request #247165 from wegank/loudmouth-darwin

loudmouth: fix build on x86_64-darwin
This commit is contained in:
7c6f434c 2023-08-04 20:08:15 +00:00 committed by GitHub
commit 051413fb2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, openssl, libidn, glib, pkg-config, zlib }:
{ lib, stdenv, fetchurl, openssl, libidn, glib, pkg-config, zlib, darwin }:
stdenv.mkDerivation rec {
version = "1.5.3";
@ -9,15 +9,17 @@ stdenv.mkDerivation rec {
sha256 = "0b6kd5gpndl9nzis3n6hcl0ldz74bnbiypqgqa1vgb0vrcar8cjl";
};
patches = [
];
configureFlags = [ "--with-ssl=openssl" ];
propagatedBuildInputs = [ openssl libidn glib zlib ];
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11") [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.Foundation
];
meta = with lib; {
description = "A lightweight C library for the Jabber protocol";
platforms = platforms.all;