sysdig: fix build on macOS (#389153)

This commit is contained in:
7c6f434c
2025-03-22 22:46:19 +00:00
committed by GitHub
+26 -22
View File
@@ -76,27 +76,31 @@ stdenv.mkDerivation {
installShellFiles
pkg-config
];
buildInputs = [
luajit
ncurses
openssl
curl
jq
gcc
elfutils
tbb
re2
protobuf
grpc
yaml-cpp
jsoncpp
nlohmann_json
zstd
uthash
clang
libbpf
bpftools
] ++ lib.optionals (kernel != null) kernel.moduleBuildDependencies;
buildInputs =
[
luajit
ncurses
openssl
curl
jq
tbb
re2
protobuf
grpc
yaml-cpp
jsoncpp
nlohmann_json
zstd
uthash
]
++ lib.optionals stdenv.isLinux [
bpftools
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