diff --git a/pkgs/by-name/li/libcap_ng/package.nix b/pkgs/by-name/li/libcap_ng/package.nix index c5fab14e7db0..1dd01ca9df0c 100644 --- a/pkgs/by-name/li/libcap_ng/package.nix +++ b/pkgs/by-name/li/libcap_ng/package.nix @@ -23,6 +23,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;