Merge pull request #288032 from SebTM/update/sysdig_0351

sysdig: 0.34.1 -> 0.35.1

authored by 7c6f434c and committed by GitHub 4477ea4d b54cebbc

+13 -36
+13 -36
pkgs/os-specific/linux/sysdig/default.nix
··· 4 4 }: 5 5 6 6 let 7 - # Compare with https://github.com/draios/sysdig/blob/dev/cmake/modules/falcosecurity-libs.cmake 8 - libsRev = "0.13.1"; 9 - libsHash = "sha256-UNoXIkFr64Nr0XVAtV4+BMNpCk4w8Dn4waZek/ok4Uk="; 7 + # Compare with https://github.com/draios/sysdig/blob/0.35.1/cmake/modules/falcosecurity-libs.cmake 8 + libsRev = "0.14.2"; 9 + libsHash = "sha256-sWrniRB/vQd1BZnsiz+wLHugrF3LhuAr9e9gDMavLoo="; 10 10 11 - # Compare with https://github.com/falcosecurity/libs/blob/master/cmake/modules/valijson.cmake#L17 11 + # Compare with https://github.com/falcosecurity/libs/blob/0.14.2/cmake/modules/valijson.cmake 12 12 valijson = fetchFromGitHub { 13 13 owner = "tristanpenman"; 14 14 repo = "valijson"; ··· 16 16 hash = "sha256-ZD19Q2MxMQd3yEKbY90GFCrerie5/jzgO8do4JQDoKM="; 17 17 }; 18 18 19 - tinydir = fetchFromGitHub { 20 - owner = "cxong"; 21 - repo = "tinydir"; 22 - rev = "1.2.5"; 23 - hash = "sha256-qQhvLzpCYMAafBNRWlY5yklHrILM8BYD+xxF0l17+do="; 24 - }; 25 - 26 - # https://github.com/draios/sysdig/blob/0.31.5/cmake/modules/driver.cmake 19 + # https://github.com/draios/sysdig/blob/0.35.1/cmake/modules/driver.cmake 27 20 driver = fetchFromGitHub { 28 21 owner = "falcosecurity"; 29 22 repo = "libs"; 30 - rev = "6.0.1+driver"; 31 - hash = "sha256-e9TJl/IahrUc4Yq2/KssTz3IBjOZwXeLt1jOkZ94EiE="; 32 - }; 33 - 34 - # can be dropped in next release 35 - uthashDevendorPatch = fetchpatch { 36 - url = "https://github.com/falcosecurity/libs/commit/0d58f798ab72e21a16ee6965c775cba2932e5100.patch"; 37 - hash = "sha256-5Y79M9u5rXZiKllJcXzDDw/3JKt0k/CgvWx+MZepkpw="; 38 - }; 39 - 40 - # https://github.com/falcosecurity/libs/blob/master/cmake/modules/b64.cmake 41 - base64 = fetchurl { 42 - url = "https://raw.githubusercontent.com/istio/proxy/1.18.2/extensions/common/wasm/base64.h"; 43 - hash = "sha256-WvHRHp5caMBDvH+2pMrU4ZptX6WvPcPaeVGtVBBCw64="; 23 + rev = "7.0.0+driver"; 24 + hash = "sha256-kXqvfM7HbGh2wEGaO4KBkFDW+m5gpOShJZKJLu9McKk="; 44 25 }; 45 26 in 46 27 stdenv.mkDerivation rec { 47 28 pname = "sysdig"; 48 - version = "0.34.1"; 29 + version = "0.35.1"; 49 30 50 31 src = fetchFromGitHub { 51 32 owner = "draios"; 52 33 repo = "sysdig"; 53 34 rev = version; 54 - hash = "sha256-G1yr1wHiaGvLMtBZgh4eoiRNJiH0cghHqWFOjKYXXsw="; 35 + hash = "sha256-nSCkKwhdEduepyvcyWEKMQtQ6TfhF3GnTSreRVoarsw="; 55 36 }; 56 37 57 38 nativeBuildInputs = [ cmake perl installShellFiles pkg-config ]; ··· 84 65 hash = libsHash; 85 66 }} libs 86 67 chmod -R +w libs 87 - pushd libs 88 - patch -p1 < ${uthashDevendorPatch} 89 - popd 68 + 69 + substituteInPlace libs/userspace/libscap/libscap.pc.in libs/userspace/libsinsp/libsinsp.pc.in \ 70 + --replace-fail "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "@CMAKE_INSTALL_FULL_LIBDIR@" \ 71 + --replace-fail "\''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@" "@CMAKE_INSTALL_FULL_INCLUDEDIR@" 90 72 91 73 cp -r ${driver} driver-src 92 74 chmod -R +w driver-src 93 - pushd driver-src 94 - patch -p1 < ${uthashDevendorPatch} 95 - popd 96 75 cmakeFlagsArray+=( 97 76 "-DFALCOSECURITY_LIBS_SOURCE_DIR=$(pwd)/libs" 98 77 "-DDRIVER_SOURCE_DIR=$(pwd)/driver-src/driver" ··· 108 87 "-DUSE_BUNDLED_JSONCPP=OFF" 109 88 "-DCREATE_TEST_TARGETS=OFF" 110 89 "-DVALIJSON_INCLUDE=${valijson}/include" 111 - "-DTINYDIR_INCLUDE=${tinydir}" 112 90 "-DUTHASH_INCLUDE=${uthash}/include" 113 91 ] ++ lib.optional (kernel == null) "-DBUILD_DRIVER=OFF"; 114 92 ··· 124 102 exit 1 125 103 fi 126 104 cmakeFlagsArray+=(-DCMAKE_EXE_LINKER_FLAGS="-ltbb -lcurl -lzstd -labsl_synchronization") 127 - install -D ${base64} build/b64/base64.h 128 105 '' + lib.optionalString (kernel != null) '' 129 106 export INSTALL_MOD_PATH="$out" 130 107 export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"