Commit a9efe8b6 authored by Robert Scott's avatar Robert Scott
Browse files

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
parent e41ae367
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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 { };