pgadmin: fix build

add a compiler flag to ignore narrowing errors
This commit is contained in:
florian on nixos (Florian Brandes) 2022-01-16 16:30:05 +01:00
parent d0a7fc845d
commit b9979ae503
No known key found for this signature in database
GPG Key ID: 074048E893713170

View File

@ -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";