2023-04-12 12:48:02 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2021-10-06 13:57:05 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-10-06 13:57:05 +00:00
|
|
|
pname = "restinio";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.6.19";
|
2021-10-06 13:57:05 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-fyHuvrlm4XDWq1TpsZiskn1DkJASFzngN8D6O7NnskA=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
mkdir -p $out/include
|
2023-04-12 12:48:02 +00:00
|
|
|
mv restinio-*/dev/restinio $out/include
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-10-06 13:57:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|