sysdig: fix build on macOS (#389153)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user