mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
4acb425c39
cjdns: https://hydra.nixos.org/build/61134279 jonprl: https://hydra.nixos.org/build/61123711 mate.libmatemixer: https://hydra.nixos.org/build/61126968 dirac: https://hydra.nixos.org/build/61132432 idnkit: https://hydra.nixos.org/build/61123544 trousers: https://hydra.nixos.org/build/61109766 packetdrill: https://hydra.nixos.org/build/61116190 osm2pgsql: https://hydra.nixos.org/build/61118017 nawk: https://hydra.nixos.org/build/61139000
26 lines
872 B
Nix
26 lines
872 B
Nix
{ stdenv, fetchFromGitHub, bison, flex }:
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0";
|
|
name = "packetdrill-${version}";
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "packetdrill";
|
|
rev = "58a7865c47e3a71e92ca0e4cc478c320e1c35f82";
|
|
sha256 = "09sqiakmn63idfjhy2ddf1456sfhi8yhsbp8lxvc1yfjikjxwwbc";
|
|
};
|
|
setSourceRoot = ''
|
|
export sourceRoot=$(realpath */gtests/net/packetdrill)
|
|
'';
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
|
|
nativeBuildInputs = [ bison flex ];
|
|
patches = [ ./nix.patch ];
|
|
enableParallelBuilding = true;
|
|
meta = {
|
|
description = "Quick, precise tests for entire TCP/UDP/IPv4/IPv6 network stacks";
|
|
homepage = https://github.com/google/packetdrill;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ dmjio cleverca22 ];
|
|
};
|
|
}
|