2021-10-06 13:57:05 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "restinio";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.6.17";
|
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";
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-8A13r3Qsn5S+kVWLPENoOjqz2tPMxSo6EWBvHG1cTAE=";
|
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;
|
|
|
|
};
|
|
|
|
}
|