* gnu/packages/lua.scm (lua5.1-sec-0.5): New variable.
* gnu/packages/messaging.scm (prosody):
[inputs]: Change lua5.1-sec to lua5.1-sec-0.5.
---
 gnu/packages/lua.scm       | 13 +++++++++++++
 gnu/packages/messaging.scm |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index fe0ec20..f95da35 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2016 Efraim Flashner <[email protected]>
 ;;; Copyright © 2016 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2016 doncatnip <[email protected]>
+;;; Copyright © 2016 Clément Lassieur <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -280,6 +281,18 @@ communication.  It takes an already established TCP 
connection and creates a
 secure session between the peers.")
     (license (package-license lua-5.1))))
 
+(define-public lua5.1-sec-0.5
+  (package
+    (inherit lua5.1-sec)
+    (version "0.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/brunoos/luasec/archive/";
+                                  "luasec-" version ".tar.gz"))
+              (sha256
+               (base32
+                "01llf5bcrjmqqy6m65avqkajz7h79rvkka6rd131kwr10n75yp3d"))))))
+
 (define-public lua-lgi
   (package
     (name "lua-lgi")
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 66cf231..72b8906 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2015 Efraim Flashner <[email protected]>
 ;;; Copyright © 2016 ng0 <[email protected]>
 ;;; Copyright © 2016 Andy Patterson <[email protected]>
+;;; Copyright © 2016 Clément Lassieur <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -563,7 +564,8 @@ end-to-end encryption support; XML console.")
        ("lua5.1-expat" ,lua5.1-expat)
        ("lua5.1-socket" ,lua5.1-socket)
        ("lua5.1-filesystem" ,lua5.1-filesystem)
-       ("lua5.1-sec" ,lua5.1-sec)))
+       ;; See <https://prosody.im/doc/depends#luasec>.
+       ("lua5.1-sec" ,lua5.1-sec-0.5)))
     (home-page "https://prosody.im/";)
     (synopsis "Jabber (XMPP) server")
     (description "Prosody is a modern XMPP communication server.  It aims to
-- 
2.10.1


Reply via email to