~ruther/guix-local

2a7d1f9eb25282ea17a7be5894cc6752310c78c2 — Giacomo Leidi 6 months ago a250c31
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>
M gnu/packages/erlang-xyz.scm => gnu/packages/erlang-xyz.scm +23 -0
@@ 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")

A gnu/packages/patches/erlang-mochiweb-disable-known-to-fail-tests.patch => gnu/packages/patches/erlang-mochiweb-disable-known-to-fail-tests.patch +25 -0
@@ 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