Merge pull request #191584 from ck3d/tracebox-version

tracebox: add version test
This commit is contained in:
Jonas Heinrich 2022-09-19 15:07:34 +02:00 committed by GitHub
commit a64a39e533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";