From 1c20cc23308ab8d08783c85a6405ff67dee1999d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 2 Oct 2023 07:05:51 +0000 Subject: [PATCH] libotr: fix cross --- pkgs/development/libraries/libotr/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libotr/default.nix b/pkgs/development/libraries/libotr/default.nix index a9c1d2008af3..672d298f1446 100644 --- a/pkgs/development/libraries/libotr/default.nix +++ b/pkgs/development/libraries/libotr/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, libgcrypt, autoreconfHook }: +{ lib, stdenv, fetchurl, pkgsHostTarget, libgcrypt, autoreconfHook }: stdenv.mkDerivation rec { pname = "libotr"; @@ -13,7 +13,10 @@ stdenv.mkDerivation rec { outputs = [ "bin" "out" "dev" ]; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ + autoreconfHook + pkgsHostTarget.libgcrypt.dev # for libgcrypt-config + ]; propagatedBuildInputs = [ libgcrypt ]; meta = with lib; {