sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / se / seasocks / package.nix
blob34bb25e5704e673265010b7e45c6e9ded2f4c21d
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   python3,
7   zlib,
8   catch2,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "seasocks";
13   version = "1.4.6";
15   src = fetchFromGitHub {
16     owner = "mattgodbolt";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "sha256-R1McxZm2qsUoggFGfL587g+8eQf7si56xVkR8B8nehQ=";
20   };
22   postPatch = ''
23     cp ${catch2}/include/catch2/catch.hpp src/test/c/catch/catch2/catch.hpp
24   '';
26   nativeBuildInputs = [ cmake ];
27   buildInputs = [
28     zlib
29     python3
30   ];
32   doCheck = true;
34   meta = with lib; {
35     homepage = "https://github.com/mattgodbolt/seasocks";
36     description = "Tiny embeddable C++ HTTP and WebSocket server";
37     license = licenses.bsd2;
38     platforms = platforms.linux;
39     maintainers = with maintainers; [ fredeb ];
40   };