libcap_ng: fix hardcoded executable path

`captest` tries to call itself with `/usr/bin/captest`. Correct the
path.
This commit is contained in:
Lương Việt Hoàng
2026-02-21 22:21:24 +07:00
parent 27e297b7b3
commit 779195f114
+2
View File
@@ -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;