nixpkgs/pkgs/development/libraries/restinio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
703 B
Nix
Raw Normal View History

2021-10-04 09:45:18 +00:00
{ lib, fetchzip }:
let
pname = "restinio";
2022-09-30 23:57:27 +00:00
version = "0.6.17";
2021-10-04 09:45:18 +00:00
in
fetchzip {
name = "${pname}-${version}";
2022-07-29 03:32:21 +00:00
url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2";
2022-09-30 23:57:27 +00:00
hash = "sha256-8A13r3Qsn5S+kVWLPENoOjqz2tPMxSo6EWBvHG1cTAE=";
2021-10-04 09:45:18 +00:00
2022-07-29 03:32:21 +00:00
stripRoot = false;
2021-10-04 09:45:18 +00:00
postFetch = ''
2022-07-29 03:32:21 +00:00
mkdir -p $out/include
mv $out/restinio-*/dev/restinio $out/include
rm -r $out/restinio-*
2021-10-04 09:45:18 +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;
};
}