python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / iouyap / default.nix
blob0b3c8007af6eb551e214ccabe5385ce09ae6d357
1 { lib, stdenv, fetchFromGitHub, bison, flex }:
3 stdenv.mkDerivation rec {
4   pname = "iouyap";
5   version = "0.97";
7   src = fetchFromGitHub {
8     owner = "GNS3";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "028s9kx67b9x7gwzg0fhc6546diw4n0x4kk1xhl3v7hbsz3wdh6s";
12   };
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";
21   installPhase = ''
22     install -D -m555 iouyap $out/bin/iouyap;
23   '';
25   meta = with lib; {
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 ];
31   };