diff options
author | Jean-Paul Calderone <exarkun@users.noreply.github.com> | 2018-11-18 20:04:21 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-18 19:04:21 -0600 |
commit | dfa36eda92000085e066883bb9b7f060a2915863 (patch) | |
tree | 932c808d67fdbe1a02202c45ad6aad7a451e7eb0 /pkgs/development/libraries/libksba | |
parent | 2c1d3a9a824938e37a1a67f7532ac6f417f917c2 (diff) |
50629.cross compile libksba (#50649)
* Fix cross-compilation of libksba. This explicitly points libksba configure script at the correct prefix for libgpgerror with dev tools. It also provides a build-system compiler so that the asn1-gentables.c build helper can be compiled and run on the build system.
Diffstat (limited to 'pkgs/development/libraries/libksba')
-rw-r--r-- | pkgs/development/libraries/libksba/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libksba/default.nix b/pkgs/development/libraries/libksba/default.nix index 0611e0e57e7b2..d48d89235d8dd 100644 --- a/pkgs/development/libraries/libksba/default.nix +++ b/pkgs/development/libraries/libksba/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, gettext, libgpgerror }: +{ buildPackages, stdenv, fetchurl, gettext, libgpgerror }: stdenv.mkDerivation rec { name = "libksba-1.3.5"; @@ -12,6 +12,9 @@ stdenv.mkDerivation rec { buildInputs = [ gettext ]; propagatedBuildInputs = [ libgpgerror ]; + depsBuildBuild = [ buildPackages.stdenv.cc ]; + + configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ]; postInstall = '' mkdir -p $dev/bin |