From 25bfced87584ab867ffa571cd877ff673494c5df Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 24 May 2022 20:51:42 +0200 Subject: ocamlPackages.tiny_httpd: init at 0.12 --- .../ocaml-modules/tiny_httpd/default.nix | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/development/ocaml-modules/tiny_httpd/default.nix (limited to 'pkgs/development') 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 000000000000..cb407ef585d9 --- /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 ]; + }; +} -- cgit v1.2.3