From 6eb3154ff6b18eaf6c769d8c981c25a59a306e09 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Tue, 3 Mar 2020 10:34:20 +0100 Subject: [PATCH] gsasl: export LOCALDOMAIN before running tests Recently kerberos added a code path that relies ont he local domain part to be available. See [hydra] for the recent build failure and [github] for a brief analysis of the error. [hydra] https://hydra.nixos.org/build/113717403 [github]: - https://github.com/NixOS/nixpkgs/pull/81531#issuecomment-593840860 - https://github.com/NixOS/nixpkgs/pull/81531#issuecomment-593853565 --- pkgs/development/libraries/gsasl/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/gsasl/default.nix b/pkgs/development/libraries/gsasl/default.nix index 899aa116b2c..c5e1deea6e1 100644 --- a/pkgs/development/libraries/gsasl/default.nix +++ b/pkgs/development/libraries/gsasl/default.nix @@ -12,16 +12,19 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-gssapi-impl=mit" ]; + preCheck = '' + export LOCALDOMAIN="dummydomain" + ''; doCheck = !stdenv.hostPlatform.isDarwin; meta = { description = "GNU SASL, Simple Authentication and Security Layer library"; longDescription = - '' GNU SASL is a library that implements the IETF Simple - Authentication and Security Layer (SASL) framework and - some SASL mechanisms. SASL is used in network servers - (e.g. IMAP, SMTP, etc.) to authenticate peers. + '' GNU SASL is a library that implements the IETF Simple + Authentication and Security Layer (SASL) framework and + some SASL mechanisms. SASL is used in network servers + (e.g. IMAP, SMTP, etc.) to authenticate peers. ''; homepage = https://www.gnu.org/software/gsasl/;