From 7363bec14af03c2bab758c121bb1177cce04942e Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 4 Dec 2022 01:48:45 +0100 Subject: [PATCH] fractal: fix build on darwin --- .../networking/instant-messengers/fractal/default.nix | 5 +++++ pkgs/development/libraries/libhandy/0.x.nix | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/fractal/default.nix b/pkgs/applications/networking/instant-messengers/fractal/default.nix index bfc322fea6cf..67762c63f72f 100644 --- a/pkgs/applications/networking/instant-messengers/fractal/default.nix +++ b/pkgs/applications/networking/instant-messengers/fractal/default.nix @@ -92,6 +92,10 @@ stdenv.mkDerivation rec { patchShebangs scripts/meson_post_install.py scripts/test.sh ''; + preConfigure = '' + export GETTEXT_DIR="${gettext}" + ''; + passthru = { updateScript = nix-update-script { attrPath = pname; @@ -103,5 +107,6 @@ stdenv.mkDerivation rec { homepage = "https://gitlab.gnome.org/GNOME/fractal"; license = licenses.gpl3; maintainers = teams.gnome.members ++ (with maintainers; [ dtzWill ]); + platforms = platforms.unix; }; } diff --git a/pkgs/development/libraries/libhandy/0.x.nix b/pkgs/development/libraries/libhandy/0.x.nix index 0109b4335e4e..5aa3f8520ea5 100644 --- a/pkgs/development/libraries/libhandy/0.x.nix +++ b/pkgs/development/libraries/libhandy/0.x.nix @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { "-Dintrospection=enabled" ]; - doCheck = true; + doCheck = !stdenv.isDarwin; checkPhase = '' NO_AT_BRIDGE=1 \ @@ -48,6 +48,6 @@ stdenv.mkDerivation rec { homepage = "https://source.puri.sm/Librem5/libhandy"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ jtojnar ]; - platforms = platforms.linux; + platforms = platforms.unix; }; }