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
This commit is contained in:
Robert Scott
2024-02-04 11:35:35 +00:00
parent e41ae367c3
commit a9efe8b635
2 changed files with 8 additions and 2 deletions
@@ -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;
+3 -1
View File
@@ -9106,7 +9106,9 @@ with pkgs;
hatch = python3Packages.callPackage ../development/tools/hatch { };
hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer { };
hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer {
stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};
half = callPackage ../development/libraries/half { };