From ca48f0cfa4d9438ba776e99d73da8b4e4b9c0b5b Mon Sep 17 00:00:00 2001 From: Christian Kampka Date: Mon, 31 Aug 2020 21:28:42 +0200 Subject: [PATCH] p11-kit: Add libtasn1 to nativeBuildInputs For cross platform builds, p11-kit, libtasn1 in nativeBuildInputs provides the asn1Parser binary on the hostPlatform needed for building. At the same time, libtasn1 in buildInputs provides the libasn1 library to link against for the target platform. Hence, libtasn1 is required in both native and build inputs. --- pkgs/development/libraries/p11-kit/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/p11-kit/default.nix b/pkgs/development/libraries/p11-kit/default.nix index 3c82944baab..46f520e41e4 100644 --- a/pkgs/development/libraries/p11-kit/default.nix +++ b/pkgs/development/libraries/p11-kit/default.nix @@ -16,7 +16,12 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev"]; outputBin = "dev"; - nativeBuildInputs = [ autoreconfHook pkgconfig which ]; + # for cross platform builds of p11-kit, libtasn1 in nativeBuildInputs + # provides the asn1Parser binary on the hostPlatform needed for building. + # at the same time, libtasn1 in buildInputs provides the libasn1 library + # to link against for the target platform. + # hence, libtasn1 is required in both native and build inputs. + nativeBuildInputs = [ autoreconfHook pkgconfig which libtasn1 ]; buildInputs = [ gettext libffi libiconv libtasn1 ]; autoreconfPhase = ''