diff --git a/pkgs/os-specific/linux/sysdig/default.nix b/pkgs/os-specific/linux/sysdig/default.nix index 488771ac3229..d1a420d22422 100644 --- a/pkgs/os-specific/linux/sysdig/default.nix +++ b/pkgs/os-specific/linux/sysdig/default.nix @@ -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