summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-03-03 14:48:10 -0500
committerGitHub <noreply@github.com>2017-03-03 14:48:10 -0500
commit75bc511222e9b8cc66ec4ccd967ca3c6d2d1f5d4 (patch)
tree403ddca6b5126d830815ec2d5d2ffca3730bb22b /pkgs/development
parent0297fdc76495ce1b9301ab49fe2281a20e13174c (diff)
parentd1a9f2e8be9624e06d42714a107d2b8288945d12 (diff)
Merge pull request #22848 from loskutov/gpgme-macos-fix
gpgme: fix build on macOS
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/gpgme/default.nix3
1 files changed, 3 insertions, 0 deletions
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";