python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / seasocks / default.nix
blob12ec9aa0e894930beb151247a8201e494559b6ba
1 { lib, stdenv, fetchFromGitHub, cmake, python3, zlib, catch2 }:
3 stdenv.mkDerivation rec {
4   pname = "seasocks";
5   version = "1.4.5";
7   src = fetchFromGitHub {
8     owner = "mattgodbolt";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-b1KNHuS5ndkBWItKVTiJ//Y+uKi1PcUk9624IILOusQ=";
12   };
14   postPatch = ''
15     cp ${catch2}/include/catch2/catch.hpp src/test/c/catch/catch2/catch.hpp
16   '';
18   nativeBuildInputs = [ cmake ];
19   buildInputs = [ zlib python3 ];
21   doCheck = true;
23   meta = with lib; {
24     homepage = "https://github.com/mattgodbolt/seasocks";
25     description = "Tiny embeddable C++ HTTP and WebSocket server";
26     license = licenses.bsd2;
27     platforms = platforms.linux;
28     maintainers = with maintainers; [ fredeb ];
29   };