From 4d8664e593d54b4ee2722ef6c8286bac8b60418f Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 20 Nov 2018 21:29:45 -0600 Subject: [PATCH] libtirpc: fix cross compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit KRB5_CONFIG needs to be aviailable to get the right one when cross compiling. These things should just use pkgconfig, but it’s fairly easy to hack around this. krb5-config will not be on path because we don’t know ahead of time what architecture it will be for. --- pkgs/development/libraries/ti-rpc/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/ti-rpc/default.nix b/pkgs/development/libraries/ti-rpc/default.nix index c139b5be1027..d67d76185745 100644 --- a/pkgs/development/libraries/ti-rpc/default.nix +++ b/pkgs/development/libraries/ti-rpc/default.nix @@ -18,6 +18,7 @@ stdenv.mkDerivation rec { '#if defined __APPLE_CC__ || defined __FreeBSD__ || !defined __GLIBC__' ''; + KRB5_CONFIG = "${libkrb5.dev}/bin/krb5-config"; nativeBuildInputs = [ autoreconfHook ]; propagatedBuildInputs = [ libkrb5 ];