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-04-29 16:46:19 +00:00
|
|
|
version = "0.6.18";
|
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-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-4OksmaW6NBpZ8npqLiZGn6zmCB7KxXlU5NKfKmA7Zr8=";
|
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;
|
|
|
|
};
|
|
|
|
}
|