From 46283b29a487935db9bffd60825ed34a4459f07e Mon Sep 17 00:00:00 2001 From: linsui Date: Thu, 15 Feb 2024 18:17:06 +0800 Subject: [PATCH] restinio_0_6: init at 0.6.19 --- pkgs/by-name/re/restinio_0_6/package.nix | 29 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/by-name/re/restinio_0_6/package.nix diff --git a/pkgs/by-name/re/restinio_0_6/package.nix b/pkgs/by-name/re/restinio_0_6/package.nix new file mode 100644 index 000000000000..9472bd0a554e --- /dev/null +++ b/pkgs/by-name/re/restinio_0_6/package.nix @@ -0,0 +1,29 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "restinio"; + version = "0.6.19"; + + src = fetchurl { + url = "https://github.com/Stiffstream/restinio/releases/download/v.${version}/${pname}-${version}.tar.bz2"; + hash = "sha256-fyHuvrlm4XDWq1TpsZiskn1DkJASFzngN8D6O7NnskA="; + }; + + sourceRoot = "."; + + installPhase = '' + runHook preInstall + + mkdir -p $out/include + mv restinio-*/dev/restinio $out/include + + runHook postInstall + ''; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0792f2808ad6..d06d97b0fd5b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11534,6 +11534,7 @@ with pkgs; opendht = callPackage ../development/libraries/opendht { inherit (darwin.apple_sdk.frameworks) Security; + restinio = restinio_0_6; }; opendkim = callPackage ../development/libraries/opendkim { }; @@ -41737,6 +41738,7 @@ with pkgs; # TODO: remove once `udev` is `systemdMinimal` everywhere. udev = systemdMinimal; jack = libjack2; + restinio = restinio_0_6; }; jitsi-meet-electron = callPackage ../applications/networking/instant-messengers/jitsi-meet-electron { };