From 050c488aee1735ea91a3f8d01220be1135ad2beb Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Wed, 18 Jun 2025 04:30:42 +0200 Subject: [PATCH] linuxPackages.opensnitch-ebpf: add `--strip-debug` flag to `llvm-strip` Fixes `opensnitch` being unable to load the eBPF module. --- pkgs/os-specific/linux/opensnitch-ebpf/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/opensnitch-ebpf/default.nix b/pkgs/os-specific/linux/opensnitch-ebpf/default.nix index 9f89e2d7abd1..d9461b2b0aed 100644 --- a/pkgs/os-specific/linux/opensnitch-ebpf/default.nix +++ b/pkgs/os-specific/linux/opensnitch-ebpf/default.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation rec { postFixup = '' # reduces closure size significantly (fixes https://github.com/NixOS/nixpkgs/issues/391351) for file in $out/etc/opensnitchd/*.o; do - llvm-strip $file + llvm-strip --strip-debug $file done '';