libsForQt5.liblastfm: revert addition of flags on darwin

Apparently on x86_64-darwin there are also C files compiled,
and that doesn't go well with -std=c++*
https://hydra.nixos.org/build/174111870
Fortunately the flag only seems needed with gcc 11 so far.
This commit is contained in:
Vladimír Čunát 2022-04-18 20:27:58 +02:00
parent 9233921313
commit 1dfcf7d2e7
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -23,7 +23,10 @@ stdenv.mkDerivation rec {
buildInputs = [ fftwSinglePrec libsamplerate qtbase ]
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
NIX_CFLAGS_COMPILE =
lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
"-std=c++11"
];
dontWrapQtApps = true;