···
33
-
# Compare with https://github.com/draios/sysdig/blob/0.38.1/cmake/modules/falcosecurity-libs.cmake
35
-
libsHash = "sha256-BTLXtdU7GjOJReaycHvXkSd2vtybnCn0rTR7OEsvaMQ=";
32
+
# Compare with https://github.com/draios/sysdig/blob/0.40.1/cmake/modules/falcosecurity-libs.cmake
34
+
libsHash = "sha256-G5MMVNceNa1y7CczfoaRBektc//uUN6ijmcTMnnKMRA=";
# Compare with https://github.com/falcosecurity/libs/blob/0.17.2/cmake/modules/valijson.cmake
valijson = fetchFromGitHub {
···
hash = "sha256-wvFdjsDtKH7CpbEpQjzWtLC4RVOU9+D2rSK0Xo1cJqo=";
45
-
# https://github.com/draios/sysdig/blob/0.38.1/cmake/modules/driver.cmake
44
+
# https://github.com/draios/sysdig/blob/0.40.1/cmake/modules/driver.cmake
driver = fetchFromGitHub {
49
-
rev = "7.2.0+driver";
50
-
hash = "sha256-FIlnJsNgofGo4HETEEpW28wpC3U9z5AZprwFR5AgFfA=";
53
-
# "main.c" from master after (https://github.com/falcosecurity/libs/pull/1884)
54
-
# Remove when an upstream release includes the driver update
55
-
driverKernel610MainC = fetchurl {
56
-
url = "https://raw.githubusercontent.com/falcosecurity/libs/fa26daf65bb4117ecfe099fcad48ea75fe86d8bb/driver/main.c";
57
-
hash = "sha256-VI/tOSXs5OcEDehSqICF3apmSnwe4QCmbkHz+DGH4uM=";
48
+
rev = "8.0.0+driver";
49
+
hash = "sha256-G5MMVNceNa1y7CczfoaRBektc//uUN6ijmcTMnnKMRA=";
···
70
-
hash = "sha256-oufRTr5TFdpF50pmem2L3bBFIfwxCR8f1xi0A328iHo=";
62
+
hash = "sha256-MPiNfxGePtQvh3l9RA6Vg+glB9RiR3ia1vv06MAw9do=";
···
cp -r ${driver} driver-src
126
-
cp ${driverKernel610MainC} driver-src/driver/main.c
"-DFALCOSECURITY_LIBS_SOURCE_DIR=$(pwd)/libs"
···
"-DCREATE_TEST_TARGETS=OFF"
"-DVALIJSON_INCLUDE=${valijson}/include"
"-DUTHASH_INCLUDE=${uthash}/include"
135
+
(lib.cmakeBool "USE_BUNDLED_FALCOSECURITY_LIBS" true)
++ lib.optional (kernel == null) "-DBUILD_DRIVER=OFF";