aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/gpgme
diff options
context:
space:
mode:
authorMichael Eden <themichaeleden@gmail.com>2019-03-20 16:36:30 -0400
committerMichael Eden <themichaeleden@gmail.com>2019-03-21 10:33:30 -0400
commitaefea5f0bde9fb9282eb51a629f638e93283d095 (patch)
treede9b2e6b3e7d8f1d78f8e2f66bbb08c9f3ed5a04 /pkgs/development/libraries/gpgme
parent5b00f65402ff18295a3bbab5bd6f98699a7a5e9f (diff)
gpgme: cross compilation
Diffstat (limited to 'pkgs/development/libraries/gpgme')
-rw-r--r--pkgs/development/libraries/gpgme/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix
index fc98af8b2cae..ed2c3e6b8002 100644
--- a/pkgs/development/libraries/gpgme/default.nix
+++ b/pkgs/development/libraries/gpgme/default.nix
@@ -3,6 +3,7 @@
, autoreconfHook, fetchpatch
, git
, texinfo
+, buildPackages
, qtbase ? null
, pythonSupport ? false, swig2 ? null, python ? null
}:
@@ -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";
@@ -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 =