mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #191584 from ck3d/tracebox-version
tracebox: add version test
This commit is contained in:
commit
a64a39e533
@ -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 New Issue
Block a user