1 { lib, stdenv, fetchFromGitHub, bison, flex }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "028s9kx67b9x7gwzg0fhc6546diw4n0x4kk1xhl3v7hbsz3wdh6s";
14 buildInputs = [ bison flex ];
16 # Workaround build failure on -fno-common toolchains like upstream
17 # gcc-10. Otherwise build fails as:
18 # ld: netmap.o:(.bss+0x20): multiple definition of `sizecheck'; iouyap.o:(.bss+0x20): first defined here
19 NIX_CFLAGS_COMPILE = "-fcommon";
22 install -D -m555 iouyap $out/bin/iouyap;
26 description = "Bridge IOU to UDP, TAP and Ethernet";
27 inherit (src.meta) homepage;
28 license = licenses.gpl3Plus;
29 platforms = platforms.linux;
30 maintainers = with maintainers; [ primeos ];