From 91fd5cfa79626e2b74414357cb84a006c00b3b6a Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 7 Jan 2024 12:40:26 +0800 Subject: [PATCH] libgweather: Fix darwin build https://hydra.nixos.org/build/243158351/nixlog/1 --- pkgs/development/libraries/libgweather/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/libgweather/default.nix b/pkgs/development/libraries/libgweather/default.nix index 0ce3450f053e..53c4b5f259b7 100644 --- a/pkgs/development/libraries/libgweather/default.nix +++ b/pkgs/development/libraries/libgweather/default.nix @@ -65,6 +65,8 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dzoneinfo_dir=${tzdata}/share/zoneinfo" (lib.mesonBool "introspection" withIntrospection) + ] ++ lib.optionals stdenv.isDarwin [ + "-Dc_args=-D_DARWIN_C_SOURCE" ]; postPatch = ''