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

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

30 lines
745 B
Nix
Raw Normal View History

2023-04-04 14:38:28 +00:00
{ lib, stdenvNoCC, fetchurl }:
2021-10-04 09:45:18 +00:00
2023-04-04 14:38:28 +00:00
stdenvNoCC.mkDerivation rec {
2021-10-04 09:45:18 +00:00
pname = "restinio";
2023-04-19 08:28:02 +00:00
version = "0.6.18";
2021-10-04 09:45:18 +00:00
2023-04-04 14:38:28 +00:00
src = fetchurl {
url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2";
2023-04-19 08:28:02 +00:00
hash = "sha256-4OksmaW6NBpZ8npqLiZGn6zmCB7KxXlU5NKfKmA7Zr8=";
2023-04-04 14:38:28 +00:00
};
sourceRoot = ".";
installPhase = ''
runHook preInstall
2022-07-29 03:32:21 +00:00
mkdir -p $out/include
2023-04-04 14:38:28 +00:00
mv restinio-*/dev/restinio $out/include
runHook postInstall
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;
};
}