loudmouth: fix build on x86_64-darwin
This commit is contained in:
parent
d00dec7dd1
commit
9d258bd17d
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.5.3";
|
version = "1.5.3";
|
||||||
|
@ -9,15 +9,17 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0b6kd5gpndl9nzis3n6hcl0ldz74bnbiypqgqa1vgb0vrcar8cjl";
|
sha256 = "0b6kd5gpndl9nzis3n6hcl0ldz74bnbiypqgqa1vgb0vrcar8cjl";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags = [ "--with-ssl=openssl" ];
|
configureFlags = [ "--with-ssl=openssl" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ openssl libidn glib zlib ];
|
propagatedBuildInputs = [ openssl libidn glib zlib ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
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; {
|
meta = with lib; {
|
||||||
description = "A lightweight C library for the Jabber protocol";
|
description = "A lightweight C library for the Jabber protocol";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
Loading…
Reference in a new issue