Merge pull request #191584 from ck3d/tracebox-version
tracebox: add version test
This commit is contained in:
commit
a64a39e533
1 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
, libpcap
|
||||
, lua5_1
|
||||
, json_c
|
||||
, testers
|
||||
, tracebox
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tracebox";
|
||||
|
@ -25,6 +27,11 @@ stdenv.mkDerivation rec {
|
|||
json_c
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i configure.ac \
|
||||
-e 's,$(git describe .*),${version},'
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-lua=yes"
|
||||
"--with-libpcap=yes"
|
||||
|
@ -35,6 +42,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = tracebox;
|
||||
command = "tracebox -V";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.tracebox.org/";
|
||||
description = "A middlebox detection tool";
|
||||
|
|
Loading…
Reference in a new issue