mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Merge pull request #291426 from trofi/qlcplus-gcc-13-fix
qlcplus: fix `gcc-13` build (drop `-Werror`)
This commit is contained in:
commit
1f9bcee228
@ -29,16 +29,20 @@ mkDerivation rec {
|
||||
|
||||
qmakeFlags = [ "INSTALLROOT=$(out)" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
sed -i -e '/unix:!macx:INSTALLROOT += \/usr/d' \
|
||||
-e "s@\$\$LIBSDIR/qt4/plugins@''${qtPluginPrefix}@" \
|
||||
-e "s@/etc/udev/rules.d@''${out}/lib/udev/rules.d@" \
|
||||
variables.pri
|
||||
|
||||
# Fix gcc-13 build failure by removing blanket -Werror.
|
||||
fgrep Werror variables.pri
|
||||
substituteInPlace variables.pri --replace-fail "QMAKE_CXXFLAGS += -Werror" ""
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
ln -sf $out/lib/*/libqlcplus* $out/lib
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user