Skip to content

Commit

Permalink
ecapture: 0.8.10 -> 0.9.0 (NixOS#361082)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 15, 2024
2 parents 93302e0 + c282dc3 commit 30b867b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pkgs/by-name/ec/ecapture/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down Expand Up @@ -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"' ' '
Expand All @@ -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 = ''
Expand All @@ -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 { };

Expand Down

0 comments on commit 30b867b

Please sign in to comment.