From 153e4528afa5f6f210121382a6a17957e2b6276b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Wed, 21 Nov 2018 14:39:51 +0100 Subject: [PATCH] cantarell-fonts: ad-hoc fix for build `GETTEXTDATADIRS` isn't populated correctly due to empty buildInputs. Borrow from `GETTEXTDATADIRS_FOR_BUILD` until we fix gettext's envHook. see: https://github.com/NixOS/nixpkgs/issues/50855 --- pkgs/data/fonts/cantarell-fonts/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/data/fonts/cantarell-fonts/default.nix b/pkgs/data/fonts/cantarell-fonts/default.nix index 7a0b8559b593b..c22c81f119112 100644 --- a/pkgs/data/fonts/cantarell-fonts/default.nix +++ b/pkgs/data/fonts/cantarell-fonts/default.nix @@ -13,6 +13,12 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ meson ninja gettext appstream-glib ]; + # ad-hoc fix for https://github.com/NixOS/nixpkgs/issues/50855 + # until we fix gettext's envHook + preBuild = '' + export GETTEXTDATADIRS="$GETTEXTDATADIRS_FOR_BUILD" + ''; + outputHashAlgo = "sha256"; outputHashMode = "recursive"; outputHash = "12ia41pr0rzjfay6y84asw3nxhyp1scq9zl0w4f6wkqj7vf1qfn1";