tcpdump: use checkInputs, fix tests

This commit is contained in:
Jan Malakhovski 2018-08-08 21:38:52 +00:00
parent 15e96bd4d2
commit 3b16f3d467

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libpcap }:
{ stdenv, fetchurl, libpcap, perl }:
stdenv.mkDerivation rec {
name = "tcpdump-${version}";
@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
# sha256 = "1vzrvn1q7x28h18yskqc390y357pzpg5xd3pzzj4xz3llnvsr64p";
# };
postPatch = ''
patchShebangs tests
'';
checkInputs = [ perl ];
buildInputs = [ libpcap ];
configureFlags = stdenv.lib.optional