libgweather: Fix darwin build

https://hydra.nixos.org/build/243158351/nixlog/1
This commit is contained in:
Bobby Rong 2024-01-07 12:40:26 +08:00
parent 85f0144502
commit 91fd5cfa79
No known key found for this signature in database

View File

@ -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 = ''