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

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

24 lines
727 B
Nix
Raw Normal View History

2021-10-04 09:45:18 +00:00
{ lib, fetchzip }:
let
pname = "restinio";
2021-12-07 04:07:30 +00:00
version = "0.6.14";
2021-10-04 09:45:18 +00:00
in
fetchzip {
name = "${pname}-${version}";
url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}-full.tar.bz2";
2021-12-07 04:07:30 +00:00
sha256 = "sha256-v/t3Lo1D6rHMx3GywPpEhOnHrT7JVC8n++YxpMTRfDM=";
2021-10-04 09:45:18 +00:00
postFetch = ''
mkdir -p $out/include/restinio
tar -xjf $downloadedFile --strip-components=3 -C $out/include/restinio --wildcards "*/dev/restinio"
'';
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;
};
}