Skip to content

Commit

Permalink
sysdig: 0.30.2 -> 0.31.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Mar 20, 2023
1 parent af8b2c2 commit a06e5ea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkgs/os-specific/linux/sysdig/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, kernel, installShellFiles, pkg-config
, luajit, ncurses, perl, jsoncpp, libb64, openssl, curl, jq, gcc, elfutils, tbb, protobuf, grpc
, yaml-cpp, nlohmann_json, re2
, yaml-cpp, nlohmann_json, re2, zstd
}:

let
# Compare with https://github.com/draios/sysdig/blob/dev/cmake/modules/falcosecurity-libs.cmake
libsRev = "0.9.1";
libsSha256 = "sha256-X+zLEnage8AuGdGn9sl1RN9b1CKTA1ErrdPNbYKY0s0=";
libsRev = "0.10.5";
libsSha256 = "sha256-5a5ePcMHAlniJ8sU/5kKdRp5YkJ6tcr4h5Ru4Oc2kQY=";

# Compare with https://github.com/falcosecurity/libs/blob/master/cmake/modules/valijson.cmake#L17
valijson = fetchFromGitHub {
Expand All @@ -31,13 +31,13 @@ let
in
stdenv.mkDerivation rec {
pname = "sysdig";
version = "0.30.2";
version = "0.31.3";

src = fetchFromGitHub {
owner = "draios";
repo = "sysdig";
rev = version;
sha256 = "sha256-bDlrnTfm43zpYBIiP2MGB+LM5jtalmeUNtWHgxe81HM=";
sha256 = "sha256-TMh2gw/vw6DbhKGwbqU2+c0DTpRaMZqUM83KE18NDmI=";
};

nativeBuildInputs = [ cmake perl installShellFiles pkg-config ];
Expand All @@ -58,6 +58,7 @@ stdenv.mkDerivation rec {
yaml-cpp
jsoncpp
nlohmann_json
zstd
] ++ lib.optionals (kernel != null) kernel.moduleBuildDependencies;

hardeningDisable = [ "pic" ];
Expand Down Expand Up @@ -97,7 +98,7 @@ stdenv.mkDerivation rec {
echo "falcosecurity-libs checksum needs to be updated!"
exit 1
fi
cmakeFlagsArray+=(-DCMAKE_EXE_LINKER_FLAGS="-ltbb -lcurl -labsl_synchronization")
cmakeFlagsArray+=(-DCMAKE_EXE_LINKER_FLAGS="-ltbb -lcurl -lzstd -labsl_synchronization")
'' + lib.optionalString (kernel != null) ''
export INSTALL_MOD_PATH="$out"
export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
Expand Down

0 comments on commit a06e5ea

Please sign in to comment.