diff options
author | Robert Scott <code@humanleg.org.uk> | 2024-02-03 21:51:50 +0000 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2024-02-04 11:35:35 +0000 |
commit | a9efe8b6357cde039aea10bd4d0473f07ebbbb35 (patch) | |
tree | 17d2e5a829b5999a0cb396941f1a9ec5eb54d119 /pkgs/applications/science | |
parent | e41ae367c36d491fe5f4180e8def06bdb7c02824 (diff) |
hal-hardware-analyzer: fix build on darwin
allow old igraph to build on modern clang by ignoring some new warnings, and build with sdk 11 to avoid memstream problems
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix b/pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix index 51e1011b8a2f0..cfafcac16d47a 100644 --- a/pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix +++ b/pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix @@ -44,6 +44,11 @@ let --replace "igraph_scg_grouping3" "" \ --replace "igraph_scg_semiprojectors2" "" ''; + NIX_CFLAGS_COMPILE = (prev.NIX_CFLAGS_COMPILE or []) ++ lib.optionals stdenv.cc.isClang [ + "-Wno-strict-prototypes" + "-Wno-unused-but-set-parameter" + "-Wno-unused-but-set-variable" + ]; # general options brought back from the old 0.9.x package buildInputs = prev.buildInputs ++ [ suitesparse ]; cmakeFlags = prev.cmakeFlags ++ [ "-DIGRAPH_USE_INTERNAL_CXSPARSE=OFF" ]; @@ -132,7 +137,6 @@ in stdenv.mkDerivation rec { ''; meta = with lib; { - broken = stdenv.isDarwin; description = "A comprehensive reverse engineering and manipulation framework for gate-level netlists"; homepage = "https://github.com/emsec/hal"; license = licenses.mit; |