Skip to content

Commit

Permalink
Merge pull request #58046 from illegalprime/gpgme-cross
Browse files Browse the repository at this point in the history
gpgme: cross compilation
  • Loading branch information
primeos authored Mar 22, 2019
2 parents 34bc84d + aefea5f commit 69e23dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/gpgme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, autoreconfHook, fetchpatch
, git
, texinfo
, buildPackages
, qtbase ? null
, pythonSupport ? false, swig2 ? null, python ? null
}:
Expand Down Expand Up @@ -31,6 +32,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ file pkgconfig gnupg autoreconfHook git texinfo ]
++ lib.optionals pythonSupport [ python swig2 which ncurses ];

depsBuildBuild = [ buildPackages.stdenv.cc ];

patches = [
(fetchpatch {
name = "fix-key-expiry.patch";
Expand All @@ -46,6 +49,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-fixed-path=${gnupg}/bin"
"--with-libgpg-error-prefix=${libgpgerror.dev}"
"--with-libassuan-prefix=${libassuan.dev}"
] ++ lib.optional pythonSupport "--enable-languages=python";

NIX_CFLAGS_COMPILE =
Expand Down

0 comments on commit 69e23dc

Please sign in to comment.