gnu: Add erlang-mochiweb.

* gnu/packages/erlang-xyz.scm (erlang-mochiweb): New variable.

Change-Id: I0c58ffb9d1c279b290a195b3663ee16b3feb8b95
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Giacomo Leidi 2025-09-12 19:49:30 +02:00 committed by Ludovic Courtès
parent a250c31e3a
commit 2a7d1f9eb2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 48 additions and 0 deletions

View file

@ -365,6 +365,29 @@ Erlang.")
(home-page "https://hex.pm/packages/mimerl")
(license license:expat)))
(define-public erlang-mochiweb
(package
(name "erlang-mochiweb")
(version "3.2.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mochi/mochiweb")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0npsgdz2jfg633zv5q5q7y3qzz58wva0y6k9calswybq0mx6243v"))
(patches
(search-patches
"erlang-mochiweb-disable-known-to-fail-tests.patch"))))
(build-system rebar-build-system)
(synopsis "MochiMedia Web Server")
(description "This package provides @code{MochiMedia}, an Erlang Web
Server.")
(home-page "https://github.com/mochi/mochiweb")
(license license:expat)))
(define-public erlang-pkix
(package
(name "erlang-pkix")

View file

@ -0,0 +1,25 @@
From 7fc5dfe2d1ab999f280edaad10426fdc51801287 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Fri, 12 Sep 2025 19:14:49 +0200
Subject: [PATCH] Disable known to fail bugs.
---
test/mochiweb_http_tests.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/mochiweb_http_tests.erl b/test/mochiweb_http_tests.erl
index 8b8ba64..0fbb7fb 100644
--- a/test/mochiweb_http_tests.erl
+++ b/test/mochiweb_http_tests.erl
@@ -3,7 +3,7 @@
-include_lib("eunit/include/eunit.hrl").
-include("mochiweb_test_util.hrl").
-has_acceptor_bug_test_() ->
+has_acceptor_bug_() ->
{setup, fun start_server/0, fun mochiweb_http:stop/1,
fun has_acceptor_bug_tests/1}.
--
2.51.0