about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/networking-ts-cxx/default.nix
blob: 7dc6d4b11fee28324d3f93b6a2695add2ebc6fca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "networking-ts-cxx";
  version = "2019-02-27";

  # Used until https://github.com/chriskohlhoff/networking-ts-impl/issues/17 is
  # resolved and we can generate in Nix.
  src = fetchFromGitHub {
    owner = "chriskohlhoff";
    repo = "networking-ts-impl";
    rev = "c97570e7ceef436581be3c138868a19ad96e025b";
    sha256 = "12b5lg989nn1b8v6x9fy3cxsf3hs5hr67bd1mfyh8pjikir7zv6j";
  };

  installPhase = ''
    mkdir -p $out/{include,lib/pkgconfig}
    cp -r include $out/
    substituteAll ${./networking_ts.pc.in} $out/lib/pkgconfig/networking_ts.pc
  '';

  meta = with lib; {
    description = "Experimental implementation of the C++ Networking Technical Specification";
    homepage = "https://github.com/chriskohlhoff/networking-ts-impl";
    license = licenses.boost;
    maintainers = with maintainers; [ bhipple ];
  };
}