aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/seasocks/default.nix
blob: 241046b09fe8b60c937f0c72252ae35fbb2fc5ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchFromGitHub, cmake, python, zlib }:

stdenv.mkDerivation rec {
  pname = "seasocks";
  version = "1.4.4";

  src = fetchFromGitHub {
    owner = "mattgodbolt";
    repo = pname;
    rev = "v${version}";
    sha256 = "1f9a3mx3yjmr5qry4rc1c7mrx3348iifxm7d8sj8yd41kqnzmfv4";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ zlib python ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/mattgodbolt/seasocks";
    description = "Tiny embeddable C++ HTTP and WebSocket server";
    license = licenses.bsd2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ fredeb ];
  };
}