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.
main
Vladimír Čunát 2 years ago
parent 9233921313
commit 1dfcf7d2e7
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 5
      pkgs/development/libraries/liblastfm/default.nix

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

Loading…
Cancel
Save