From 5a322693f4de4763e951f5df3f0026e914957ae4 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 16 Feb 2019 02:40:40 -0500 Subject: [PATCH] libxmlb: fix build Tests failed with: ERROR:../src/xb-self-test.c:462:xb_builder_ensure_watch_source_func: assertion failed (error == NULL) cannot process file of type application/x-zerosize (g-io-error-quark, 15) See: https://hydra.nixos.org/build/88774485 --- pkgs/development/libraries/libxmlb/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/libxmlb/default.nix b/pkgs/development/libraries/libxmlb/default.nix index cce73ba89bc..bdf210a061a 100644 --- a/pkgs/development/libraries/libxmlb/default.nix +++ b/pkgs/development/libraries/libxmlb/default.nix @@ -22,6 +22,10 @@ stdenv.mkDerivation rec { "-Dgtkdoc=true" ]; + preCheck = '' + export XDG_DATA_DIRS=$XDG_DATA_DIRS:${shared-mime-info}/share + ''; + doCheck = true; meta = with stdenv.lib; {