From d1a9f2e8be9624e06d42714a107d2b8288945d12 Mon Sep 17 00:00:00 2001 From: Ignat Loskutov Date: Thu, 16 Feb 2017 01:13:23 +0300 Subject: [PATCH] gpgme: fix build on macOS --- pkgs/development/libraries/gpgme/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index 307fde4e5c27..2ab0977004c4 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -30,6 +30,9 @@ stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = with stdenv; lib.optional (system == "i686-linux") "-D_FILE_OFFSET_BITS=64"; + AM_CXXFLAGS = + with stdenv; lib.optional (isDarwin) "-D_POSIX_C_SOURCE=200809L"; + meta = with stdenv.lib; { homepage = "http://www.gnupg.org/related_software/gpgme"; description = "Library for making GnuPG easier to use";