Merge pull request #58046 from illegalprime/gpgme-cross
gpgme: cross compilation
This commit is contained in:
commit
69e23dcc66
@ -3,6 +3,7 @@
|
|||||||
, autoreconfHook, fetchpatch
|
, autoreconfHook, fetchpatch
|
||||||
, git
|
, git
|
||||||
, texinfo
|
, texinfo
|
||||||
|
, buildPackages
|
||||||
, qtbase ? null
|
, qtbase ? null
|
||||||
, pythonSupport ? false, swig2 ? null, python ? null
|
, pythonSupport ? false, swig2 ? null, python ? null
|
||||||
}:
|
}:
|
||||||
@ -31,6 +32,8 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ file pkgconfig gnupg autoreconfHook git texinfo ]
|
nativeBuildInputs = [ file pkgconfig gnupg autoreconfHook git texinfo ]
|
||||||
++ lib.optionals pythonSupport [ python swig2 which ncurses ];
|
++ lib.optionals pythonSupport [ python swig2 which ncurses ];
|
||||||
|
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "fix-key-expiry.patch";
|
name = "fix-key-expiry.patch";
|
||||||
@ -46,6 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-fixed-path=${gnupg}/bin"
|
"--enable-fixed-path=${gnupg}/bin"
|
||||||
"--with-libgpg-error-prefix=${libgpgerror.dev}"
|
"--with-libgpg-error-prefix=${libgpgerror.dev}"
|
||||||
|
"--with-libassuan-prefix=${libassuan.dev}"
|
||||||
] ++ lib.optional pythonSupport "--enable-languages=python";
|
] ++ lib.optional pythonSupport "--enable-languages=python";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE =
|
NIX_CFLAGS_COMPILE =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user