From 129308dcec5e6f5e82a2c6360b6512217bd3fb04 Mon Sep 17 00:00:00 2001 From: sss Date: Tue, 6 Apr 2021 18:08:49 +0300 Subject: working on ejabberd package --- packages/ejabberd.scm | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/packages/ejabberd.scm b/packages/ejabberd.scm index f387600..06c44d0 100644 --- a/packages/ejabberd.scm +++ b/packages/ejabberd.scm @@ -1,6 +1,7 @@ (define-module (gnu packages ejabberd) #:use-module (guix packages) #:use-module (guix git-download) + #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages erlang) #:use-module (gnu packages web) @@ -17,6 +18,81 @@ #:use-module ((guix licenses) #:prefix license:) ) +(define-public erlang-rebar2-bin + (package + (name "erlang-rebar3-bin") + (version "2.6.4-ejabberd") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/processone/ejabberd") + (commit "21.01"))) + (sha256 + (base32 "0fyxfwgqw72i4nz5g5nw79h6d4f6kw5r2mzh7c2s3npv7kx4zvry")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (delete 'check) + (delete 'bootstrap) + ; (delete 'patch-source-shebangs) + ; (delete 'patch-shebangs) + ; (delete 'patch-usr-bin-file) + ; (delete 'patch-generated-file-shebangs) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (install-file "rebar" bin) + ) + #t) + ) + ))) + (native-inputs + `( + ("erlang" ,erlang) + )) + (license license:asl2.0) + (synopsis "rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.") + (description "rebar is a self-contained Erlang script, so it's easy to distribute or even embed directly in a project. Where possible, rebar uses standard Erlang/OTP conventions for project structures, thus minimizing the amount of build configuration work. rebar also provides dependency management, enabling application writers to easily re-use common libraries from a variety of locations (git, hg, etc).") + (home-page "https://github.com/rebar/rebar") + )) + +(define-public erlang-base64url + (package + (name "erelang-base64url") + (version "1.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dvv/base64url") + (commit version))) + (sha256 + (base32 "0467cydxlx1fww1rmn2hjiyhwyszvrngc4x9mg3dkihr7jc5hsaa")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + ))) + (native-inputs + `( + ("erlang" ,erlang) + ("erlang-rebar2" ,erlang-rebar2-bin) + )) + (synopsis "Standalone URL safe base64-compatible codec.") + (description "Standalone URL safe base64-compatible codec.") + (license (list + license:bsd-4 + )) + (home-page "https://github.com/dvv/base64url") + )) + + + + (define-public ejabberd (package (name "ejabberd") @@ -62,6 +138,7 @@ (inputs `( ("erlang" ,erlang) + ("erlang-base64url" ,erlang-base64url) ("expat" ,expat ) ("libyaml" ,libyaml) ("zlib" ,zlib) -- cgit v1.2.3