Unverified Commit 0b271b66 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

sysdig: fix build on macOS (#389153)

parents b4a809c7 621de936
Loading
Loading
Loading
Loading
+26 −22
Original line number Diff line number Diff line
@@ -76,14 +76,13 @@ stdenv.mkDerivation {
    installShellFiles
    pkg-config
  ];
  buildInputs = [
  buildInputs =
    [
      luajit
      ncurses
      openssl
      curl
      jq
    gcc
    elfutils
      tbb
      re2
      protobuf
@@ -93,10 +92,15 @@ stdenv.mkDerivation {
      nlohmann_json
      zstd
      uthash
    clang
    libbpf
    ]
    ++ lib.optionals stdenv.isLinux [
      bpftools
  ] ++ lib.optionals (kernel != null) kernel.moduleBuildDependencies;
      elfutils
      libbpf
      clang
      gcc
    ]
    ++ lib.optionals (kernel != null) kernel.moduleBuildDependencies;

  hardeningDisable = [
    "pic"
@@ -158,7 +162,7 @@ stdenv.mkDerivation {
    '';

  postInstall =
    ''
    lib.optionalString stdenv.isLinux ''
      # Fix the bash completion location
      installShellCompletion --bash $out/etc/bash_completion.d/sysdig
      rm $out/etc/bash_completion.d/sysdig