From 5eecf587ae4416bfb4cf7d6818a711d685ef359d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 17 Oct 2023 00:40:55 +0200 Subject: [PATCH] telepathy-logger: add darwin support --- .../instant-messengers/telepathy/logger/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix b/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix index ac03ee20ff95..9a8e547b70eb 100644 --- a/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix +++ b/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchurl, dbus-glib, libxml2, sqlite, telepathy-glib, python3, pkg-config , dconf, makeWrapper, intltool, libxslt, gobject-introspection, dbus -, fetchpatch +, fetchpatch, darwin }: stdenv.mkDerivation rec { @@ -26,6 +26,9 @@ stdenv.mkDerivation rec { buildInputs = [ dbus-glib libxml2 sqlite telepathy-glib dbus + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AppKit + darwin.apple_sdk.frameworks.Foundation ]; configureFlags = [ "--enable-call" ]; @@ -39,8 +42,8 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Logger service for Telepathy framework"; homepage = "https://telepathy.freedesktop.org/components/telepathy-logger/"; - license = licenses.lgpl21; + license = licenses.lgpl21Plus; maintainers = with maintainers; [ ]; - platforms = platforms.gnu ++ platforms.linux; # Arbitrary choice + platforms = platforms.unix; }; }