From dfa36eda92000085e066883bb9b7f060a2915863 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 18 Nov 2018 20:04:21 -0500 Subject: [PATCH] 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. --- pkgs/development/libraries/libksba/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libksba/default.nix b/pkgs/development/libraries/libksba/default.nix index 0611e0e57e7..d48d89235d8 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