python3Packages.libpcap: fix build

It previously failed with

    OSError: /nix/store/0vzyp6v62bwlr70xr36iwpsxfsc6jvgq-libpcap-1.10.5/lib/libpcap.so: cannot open shared object file: No such file or directory

because da89a2d075 introduced a lib output.
This commit is contained in:
Robert Schütz
2025-09-13 22:05:31 -07:00
parent 4199f186ec
commit 8142dc35f0
@@ -32,7 +32,7 @@ buildPythonPackage rec {
sed -i "/requires/s/, 'tox>=[^']*'//" pyproject.toml
cat <<EOF >src/libpcap/libpcap.cfg
[libpcap]
LIBPCAP = ${pkgsLibpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}
LIBPCAP = ${lib.getLib pkgsLibpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}
EOF
'';