libpcap: add separate lib output

This enables us to use the lib output without pulling in bash.

- Enable structuredAttrs
- Enable strictDeps
- Add bash to disallowedRequisites

nikstur da89a2d0 7a955016

+21 -2
+21 -2
pkgs/by-name/li/libpcap/package.nix
··· 4 fetchurl, 5 flex, 6 bison, 7 bluez, 8 libnl, 9 libxcrypt, ··· 26 pname = "libpcap"; 27 version = "1.10.5"; 28 29 src = fetchurl { 30 url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; 31 hash = "sha256-N87ZChmjAqfzLkWCJKAMNlwReQXCzTWsVEtogKgUiPA="; 32 }; 33 34 - buildInputs = 35 - lib.optionals stdenv.hostPlatform.isLinux [ libnl ] ++ lib.optionals withRemote [ libxcrypt ]; 36 37 nativeBuildInputs = [ 38 flex ··· 61 ''; 62 63 enableParallelBuilding = true; 64 65 passthru.tests = { 66 inherit
··· 4 fetchurl, 5 flex, 6 bison, 7 + bash, 8 + bashNonInteractive, 9 bluez, 10 libnl, 11 libxcrypt, ··· 28 pname = "libpcap"; 29 version = "1.10.5"; 30 31 + __structuredAttrs = true; 32 + 33 src = fetchurl { 34 url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; 35 hash = "sha256-N87ZChmjAqfzLkWCJKAMNlwReQXCzTWsVEtogKgUiPA="; 36 }; 37 38 + outputs = [ 39 + "out" 40 + "lib" 41 + ]; 42 + 43 + strictDeps = true; 44 + 45 + buildInputs = [ 46 + bash 47 + ] 48 + ++ lib.optionals stdenv.hostPlatform.isLinux [ libnl ] 49 + ++ lib.optionals withRemote [ libxcrypt ]; 50 51 nativeBuildInputs = [ 52 flex ··· 75 ''; 76 77 enableParallelBuilding = true; 78 + 79 + outputChecks.lib.disallowedRequisites = [ 80 + bash 81 + bashNonInteractive 82 + ]; 83 84 passthru.tests = { 85 inherit