summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastián Mancilla <smancill@smancill.dev>2022-07-10 00:04:01 -0400
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-07-10 11:51:32 +0000
commit4cddfa32f82c66f5778bf2ab5491bb3f6901c545 (patch)
treea9d44d4b9f9bf5bb6751ab340fa197001679510b
parentMerge pull request #180956 from NixOS/backport-180842-to-release-22.05 (diff)
downloadnixpkgs-4cddfa32f82c66f5778bf2ab5491bb3f6901c545.tar.gz
coan: fix build on darwin
The configure script was failing because the `-std=c++11` flag was used when trying to compile C. Set the flag with CXXFLAGS instead. (cherry picked from commit f170b3aebcf2ed764e75869c98259a7bdd4bdf0d)
-rw-r--r--pkgs/development/tools/analysis/coan/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/development/tools/analysis/coan/default.nix b/pkgs/development/tools/analysis/coan/default.nix
index 3a1b26f1cc8a..ff564916dd3a 100644
--- a/pkgs/development/tools/analysis/coan/default.nix
+++ b/pkgs/development/tools/analysis/coan/default.nix
@@ -11,9 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ perl ];
- NIX_CFLAGS_COMPILE = [
- "-std=c++11"
- ];
+ CXXFLAGS = "-std=c++11";
enableParallelBuilding = true;
@@ -22,7 +20,6 @@ stdenv.mkDerivation rec {
'';
meta = with lib; {
- broken = stdenv.isDarwin;
description = "The C preprocessor chainsaw";
longDescription = ''
A software engineering tool for analysing preprocessor-based