Unverified Commit d1478e78 authored by Wolfgang Walther's avatar Wolfgang Walther
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];
                                         ^~~~~~~~~~~~~~~~
parent d494c4c3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
    hash = "sha256-/xXnui0S0ZjRw7P8kMAgttHVv8T41aOhM3pM8P0OTig=";
  };

  buildFlags = [ "PG_CFLAGS=-Wno-error=vla" ];

  installPhase = ''
    runHook preInstall