diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-05-24 20:51:42 +0200 |
---|---|---|
committer | obadz <3359345+obadz@users.noreply.github.com> | 2022-05-25 09:21:52 +0100 |
commit | 25bfced87584ab867ffa571cd877ff673494c5df (patch) | |
tree | 2738225a7bb1e66a0f756f4b03bd28208a029a01 /pkgs/development | |
parent | 501d81fa393bb67a1895a6d852f3768c01d81a8c (diff) |
ocamlPackages.tiny_httpd: init at 0.12
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/tiny_httpd/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
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 ]; + }; +} |