diff --git a/pkgs/by-name/ec/ecapture/package.nix b/pkgs/by-name/ec/ecapture/package.nix index bd29649bfb5f0..d97f68929ec11 100644 --- a/pkgs/by-name/ec/ecapture/package.nix +++ b/pkgs/by-name/ec/ecapture/package.nix @@ -21,13 +21,13 @@ buildGoModule rec { pname = "ecapture"; - version = "0.8.10"; + version = "0.9.0"; src = fetchFromGitHub { owner = "gojue"; repo = "ecapture"; - rev = "refs/tags/v${version}"; - hash = "sha256-vaksl9Bt7Yu62MDGtgkFB4nhH0zdZ29JhE0ypQkuv74="; + tag = "v${version}"; + hash = "sha256-ugUoeIrAElwnGcoX4ojnz/W4kmxgYMmjr1oqSoMyYng="; fetchSubmodules = true; }; @@ -59,9 +59,7 @@ buildGoModule rec { "zerocallusedregs" ]; - patchPhase = '' - runHook prePatch - + postPatch = '' substituteInPlace user/config/config_gnutls_linux.go \ --replace-fail 'return errors.New("cant found Gnutls so load path")' 'gc.Gnutls = "${lib.getLib gnutls}/lib/libgnutls.so.30"' \ --replace-fail '"errors"' ' ' @@ -87,8 +85,6 @@ buildGoModule rec { substituteInPlace user/config/config_openssl_linux.go \ --replace-fail 'return errors.New("cant found openssl so load path")' 'oc.Openssl = "${lib.getLib openssl}/lib/libssl.so.3"' \ --replace-fail '"errors"' ' ' - - runHook postPatch ''; postConfigure = '' @@ -102,7 +98,15 @@ buildGoModule rec { go-bindata -pkg assets -o "assets/ebpf_probe.go" $(find user/bytecode -name "*.o" -printf "./%p ") ''; - vendorHash = "sha256-j5AXZqup0nPUlGWvb4PCLKJFoQx/c4I3PxZB99TTTWA="; + checkFlags = + let + skippedTests = [ + "TestCheckLatest" + ]; + in + [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; + + vendorHash = "sha256-A+0ASVHMzNcuLsP9F55hvGjflLg68p0ckj6kPbjdg4E="; passthru.updateScript = nix-update-script { };