2017-03-09 23:54:04 +01:00
|
|
|
{ stdenv, fetchFromGitHub, bison, flex }:
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-03-09 23:54:04 +01:00
|
|
|
version = "1.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "packetdrill";
|
2017-03-09 23:54:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "packetdrill";
|
|
|
|
rev = "58a7865c47e3a71e92ca0e4cc478c320e1c35f82";
|
|
|
|
sha256 = "09sqiakmn63idfjhy2ddf1456sfhi8yhsbp8lxvc1yfjikjxwwbc";
|
|
|
|
};
|
|
|
|
setSourceRoot = ''
|
|
|
|
export sourceRoot=$(realpath */gtests/net/packetdrill)
|
|
|
|
'';
|
2019-11-03 13:44:26 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=unused-result"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
"-Wno-error=address-of-packed-member"
|
|
|
|
];
|
2017-03-10 23:21:16 +01:00
|
|
|
nativeBuildInputs = [ bison flex ];
|
2017-03-09 23:54:04 +01:00
|
|
|
patches = [ ./nix.patch ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
|
|
description = "Quick, precise tests for entire TCP/UDP/IPv4/IPv6 network stacks";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/google/packetdrill";
|
2017-03-09 23:54:04 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-09-22 20:03:17 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-03-09 23:54:04 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ dmjio cleverca22 ];
|
|
|
|
};
|
|
|
|
}
|