Merge pull request #286257 from risicle/ris-hal-hardware-analyzer-darwin-2024-02

hal-hardware-analyzer: fix build on darwin

authored by Robert Scott and committed by GitHub 005f312a 3a7268f1

+8 -2
+5 -1
pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix
··· 44 --replace "igraph_scg_grouping3" "" \ 45 --replace "igraph_scg_semiprojectors2" "" 46 ''; 47 # general options brought back from the old 0.9.x package 48 buildInputs = prev.buildInputs ++ [ suitesparse ]; 49 cmakeFlags = prev.cmakeFlags ++ [ "-DIGRAPH_USE_INTERNAL_CXSPARSE=OFF" ]; ··· 138 ''; 139 140 meta = with lib; { 141 - broken = stdenv.isDarwin; 142 description = "A comprehensive reverse engineering and manipulation framework for gate-level netlists"; 143 homepage = "https://github.com/emsec/hal"; 144 license = licenses.mit;
··· 44 --replace "igraph_scg_grouping3" "" \ 45 --replace "igraph_scg_semiprojectors2" "" 46 ''; 47 + NIX_CFLAGS_COMPILE = (prev.NIX_CFLAGS_COMPILE or []) ++ lib.optionals stdenv.cc.isClang [ 48 + "-Wno-strict-prototypes" 49 + "-Wno-unused-but-set-parameter" 50 + "-Wno-unused-but-set-variable" 51 + ]; 52 # general options brought back from the old 0.9.x package 53 buildInputs = prev.buildInputs ++ [ suitesparse ]; 54 cmakeFlags = prev.cmakeFlags ++ [ "-DIGRAPH_USE_INTERNAL_CXSPARSE=OFF" ]; ··· 143 ''; 144 145 meta = with lib; { 146 description = "A comprehensive reverse engineering and manipulation framework for gate-level netlists"; 147 homepage = "https://github.com/emsec/hal"; 148 license = licenses.mit;
+3 -1
pkgs/top-level/all-packages.nix
··· 9083 9084 hatch = python3Packages.callPackage ../development/tools/hatch { }; 9085 9086 - hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer { }; 9087 9088 half = callPackage ../development/libraries/half { }; 9089
··· 9083 9084 hatch = python3Packages.callPackage ../development/tools/hatch { }; 9085 9086 + hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer { 9087 + stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; 9088 + }; 9089 9090 half = callPackage ../development/libraries/half { }; 9091