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 4 fetchurl, 5 5 flex, 6 6 bison, 7 + bash, 8 + bashNonInteractive, 7 9 bluez, 8 10 libnl, 9 11 libxcrypt, ··· 26 28 pname = "libpcap"; 27 29 version = "1.10.5"; 28 30 31 + __structuredAttrs = true; 32 + 29 33 src = fetchurl { 30 34 url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; 31 35 hash = "sha256-N87ZChmjAqfzLkWCJKAMNlwReQXCzTWsVEtogKgUiPA="; 32 36 }; 33 37 34 - buildInputs = 35 - lib.optionals stdenv.hostPlatform.isLinux [ libnl ] ++ lib.optionals withRemote [ libxcrypt ]; 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 ]; 36 50 37 51 nativeBuildInputs = [ 38 52 flex ··· 61 75 ''; 62 76 63 77 enableParallelBuilding = true; 78 + 79 + outputChecks.lib.disallowedRequisites = [ 80 + bash 81 + bashNonInteractive 82 + ]; 64 83 65 84 passthru.tests = { 66 85 inherit