Skip to content

Commit d1478e7

Browse files
postgresqlPackages.system_stats: fix build on darwin
The build was failing with: darwin/io_analysis.c:71:21: error: variable length array used [-Werror,-Wvla] char device_name[kMaxDiskNameSize]; ^~~~~~~~~~~~~~~~
1 parent d494c4c commit d1478e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkgs/servers/sql/postgresql/ext/system_stats.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
1717
hash = "sha256-/xXnui0S0ZjRw7P8kMAgttHVv8T41aOhM3pM8P0OTig=";
1818
};
1919

20+
buildFlags = [ "PG_CFLAGS=-Wno-error=vla" ];
21+
2022
installPhase = ''
2123
runHook preInstall
2224

0 commit comments

Comments
 (0)