about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-07-15 10:18:18 +0200
committerGitHub <noreply@github.com>2023-07-15 10:18:18 +0200
commit62f2aff7a1ec8bf0e102f144e67dc1e482067337 (patch)
tree6af7b6630148d3fa71e26028c5807b09fb768f2d /pkgs
parent2534a7ff3c87439e8a775e4b3fdb440eb38fc2b0 (diff)
parenta1ea146f5b5846b0c4bb40d819f09246dadce8f1 (diff)
Merge pull request #242411 from kirillrdy/mapcache
mapcache: fix build on linux
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/geospatial/mapcache/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/geospatial/mapcache/default.nix b/pkgs/servers/geospatial/mapcache/default.nix
index e9ac6e834979e..e4326e920ced9 100644
--- a/pkgs/servers/geospatial/mapcache/default.nix
+++ b/pkgs/servers/geospatial/mapcache/default.nix
@@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
     "-DAPACHE_MODULE_DIR=${placeholder "out"}/modules"
   ];
 
-  env.NIX_CFLAGS_COMPILE = "-std=c99";
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-std=c99";
 
   meta = with lib; {
     description = "A server that implements tile caching to speed up access to WMS layers";