summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsss <sss@dark-alexandr.net>2021-04-06 18:08:49 +0300
committersss <sss@dark-alexandr.net>2021-04-06 18:08:49 +0300
commit129308dcec5e6f5e82a2c6360b6512217bd3fb04 (patch)
treec91fdfb8b44e37a9e8f3d1199fd7ddb00961b0a5
parent76365ee53dc5bcc056c54f6f76e7fd66f1789018 (diff)
working on ejabberd package
-rw-r--r--packages/ejabberd.scm77
1 files changed, 77 insertions, 0 deletions
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)