summary refs log blame commit diff
path: root/pkgs/development/libraries/restinio/default.nix
blob: 9472bd0a554e77714614ed3eb0fbf54b7980a7b6 (plain) (tree)
1
2
3
4
5
6
7
8
9
                              
 
                             
                     
                     
 

                                                                                                               
                                                                 






                      
                         


                                           








                                                                                                                         
{ lib, stdenvNoCC, fetchurl }:

stdenvNoCC.mkDerivation rec {
  pname = "restinio";
  version = "0.6.19";

  src = fetchurl {
    url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2";
    hash = "sha256-fyHuvrlm4XDWq1TpsZiskn1DkJASFzngN8D6O7NnskA=";
  };

  sourceRoot = ".";

  installPhase = ''
    runHook preInstall

    mkdir -p $out/include
    mv restinio-*/dev/restinio $out/include

    runHook postInstall
  '';

  meta = with lib; {
    description = "Cross-platform, efficient, customizable, and robust asynchronous HTTP/WebSocket server C++14 library";
    homepage = "https://github.com/Stiffstream/restinio";
    license = licenses.bsd3;
    platforms = platforms.all;
  };
}