From 779195f114d3da4ea420234bbc8699b258976da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C6=B0=C6=A1ng=20Vi=E1=BB=87t=20Ho=C3=A0ng?= Date: Sat, 21 Feb 2026 21:11:41 +0700 Subject: [PATCH] libcap_ng: fix hardcoded executable path `captest` tries to call itself with `/usr/bin/captest`. Correct the path. --- pkgs/by-name/li/libcap_ng/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/li/libcap_ng/package.nix b/pkgs/by-name/li/libcap_ng/package.nix index da302c3cf49b..6662d8c99c3f 100644 --- a/pkgs/by-name/li/libcap_ng/package.nix +++ b/pkgs/by-name/li/libcap_ng/package.nix @@ -22,6 +22,8 @@ stdenv.mkDerivation (finalAttrs: { # NEWS needs to exist or else the build fails postPatch = '' touch NEWS + substituteInPlace utils/captest.c \ + --replace-fail /usr/bin/captest ${placeholder "out"}/bin/captest ''; strictDeps = true;