From b9979ae50379da983acf6f9f98caa849d25fa688 Mon Sep 17 00:00:00 2001 From: "florian on nixos (Florian Brandes)" Date: Sun, 16 Jan 2022 16:30:05 +0100 Subject: [PATCH] pgadmin: fix build add a compiler flag to ignore narrowing errors --- pkgs/applications/misc/pgadmin/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/misc/pgadmin/default.nix b/pkgs/applications/misc/pgadmin/default.nix index f4981f6d3fb7..1bcc36557afa 100644 --- a/pkgs/applications/misc/pgadmin/default.nix +++ b/pkgs/applications/misc/pgadmin/default.nix @@ -31,6 +31,12 @@ stdenv.mkDerivation rec { "--with-libxslt=${libxslt.dev}" ]; + # starting with C++11 narrowing became an error + # and not just a warning. With the current c++ compiler + # pgadmin3 will fail with several "narrowing" errors. + # see https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-Wno-narrowing + makeFlags = "CXXFLAGS=-Wno-narrowing" ; + meta = with lib; { description = "PostgreSQL administration GUI tool"; homepage = "https://www.pgadmin.org";