Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / restinio / default.nix
blob9472bd0a554e77714614ed3eb0fbf54b7980a7b6
1 { lib, stdenvNoCC, fetchurl }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "restinio";
5   version = "0.6.19";
7   src = fetchurl {
8     url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2";
9     hash = "sha256-fyHuvrlm4XDWq1TpsZiskn1DkJASFzngN8D6O7NnskA=";
10   };
12   sourceRoot = ".";
14   installPhase = ''
15     runHook preInstall
17     mkdir -p $out/include
18     mv restinio-*/dev/restinio $out/include
20     runHook postInstall
21   '';
23   meta = with lib; {
24     description = "Cross-platform, efficient, customizable, and robust asynchronous HTTP/WebSocket server C++14 library";
25     homepage = "https://github.com/Stiffstream/restinio";
26     license = licenses.bsd3;
27     platforms = platforms.all;
28   };