From 7d2764c6107964ee74046c170a9ea4cd2816090d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 17 Oct 2022 21:09:04 +0200 Subject: [PATCH] gjs: add darwin support --- pkgs/development/libraries/gjs/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gjs/default.nix b/pkgs/development/libraries/gjs/default.nix index 6a24be2adbbb..4716bb061b39 100644 --- a/pkgs/development/libraries/gjs/default.nix +++ b/pkgs/development/libraries/gjs/default.nix @@ -79,9 +79,11 @@ in stdenv.mkDerivation rec { mesonFlags = [ "-Dinstalled_test_prefix=${placeholder "installedTests"}" + ] ++ lib.optionals (!stdenv.isLinux) [ + "-Dprofiler=disabled" ]; - doCheck = true; + doCheck = !stdenv.isDarwin; postPatch = '' patchShebangs build/choose-tests-locale.sh @@ -139,6 +141,6 @@ in stdenv.mkDerivation rec { homepage = "https://gitlab.gnome.org/GNOME/gjs/blob/master/doc/Home.md"; license = licenses.lgpl2Plus; maintainers = teams.gnome.members; - platforms = platforms.linux; + platforms = platforms.unix; }; }