2021-10-06 13:57:05 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "restinio";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.6.16";
|
2021-10-06 13:57:05 +00:00
|
|
|
in
|
|
|
|
fetchzip {
|
|
|
|
name = "${pname}-${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2";
|
|
|
|
hash = "sha256-tl9HUsT9mCupuwp6T4dbPdYOQy3vYyctuwFQPfR8m0Y=";
|
2021-10-06 13:57:05 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stripRoot = false;
|
2021-10-06 13:57:05 +00:00
|
|
|
postFetch = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
mkdir -p $out/include
|
|
|
|
mv $out/restinio-*/dev/restinio $out/include
|
|
|
|
rm -r $out/restinio-*
|
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;
|
|
|
|
};
|
|
|
|
}
|