git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22848 from loskutov/gpgme-macos-fix

gpgme: fix build on macOS

commit75bc511222e9b8cc66ec4ccd967ca3c6d2d1f5d4 authorGraham Christensen <graham@grahamc.com> dateFri 3 Mar 2017, 14:48 (10 years ago) parent0297fdcd1a9f2e
1 file changed+3
pkgs/development/libraries/gpgme/default.nix+3
pkgs/development/libraries/gpgme/default.nix+3
@@ -30,6 +30,9 @@ stdenv.mkDerivation rec {
3030 NIX_CFLAGS_COMPILE =
3131 with stdenv; lib.optional (system == "i686-linux") "-D_FILE_OFFSET_BITS=64";
3232
33+ AM_CXXFLAGS =
34+ with stdenv; lib.optional (isDarwin) "-D_POSIX_C_SOURCE=200809L";
35+
3336 meta = with stdenv.lib; {
3437 homepage = "http://www.gnupg.org/related_software/gpgme";
3538 description = "Library for making GnuPG easier to use";