From 25bfced87584ab867ffa571cd877ff673494c5df Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 24 May 2022 20:51:42 +0200 Subject: [PATCH] ocamlPackages.tiny_httpd: init at 0.12 --- .../ocaml-modules/tiny_httpd/default.nix | 28 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/tiny_httpd/default.nix diff --git a/pkgs/development/ocaml-modules/tiny_httpd/default.nix b/pkgs/development/ocaml-modules/tiny_httpd/default.nix new file mode 100644 index 00000000000..cb407ef585d --- /dev/null +++ b/pkgs/development/ocaml-modules/tiny_httpd/default.nix @@ -0,0 +1,28 @@ +{ lib, buildDunePackage, fetchFromGitHub +, result +, seq +}: + +buildDunePackage rec { + pname = "tiny_httpd"; + version = "0.12"; + + minimalOCamlVersion = "4.04"; + + src = fetchFromGitHub { + owner = "c-cube"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256:1z9hzc0ib7pg9fsjmpggjqwrnip57izr2v0na7vc7s25lxsiag6a"; + }; + + buildInputs = [ result ]; + propagatedBuildInputs = [ seq ]; + + meta = { + description = "Minimal HTTP server using good old threads"; + inherit (src.meta) homepage; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 3bbfd736f7f..905294b8f8b 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1165,6 +1165,8 @@ let tcpip = callPackage ../development/ocaml-modules/tcpip { }; + tiny_httpd = callPackage ../development/ocaml-modules/tiny_httpd { }; + tsort = callPackage ../development/ocaml-modules/tsort { }; tuntap = callPackage ../development/ocaml-modules/tuntap { };