From e0aa5b5bbfd0b261d322ba8b0892c45e9434230c Mon Sep 17 00:00:00 2001 From: Clément Lassieur Date: Mon, 7 Jan 2019 11:52:37 +0100 Subject: gnu: Add prosody-http-upload. * gnu/packages/messaging.scm (prosody-http-upload): New variable. --- gnu/packages/messaging.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/messaging.scm') diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 1500be43b0..b828c4d4e1 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -96,6 +96,7 @@ #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix hg-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils)) @@ -870,6 +871,38 @@ system on which to rapidly develop added functionality, or prototype new protocols.") (license license:x11))) +(define-public prosody-http-upload + (let ((changeset "765735bb590b") + (revision "1")) + (package + (name "prosody-http-upload") + (version (string-append "0-" revision "." (string-take changeset 7))) + (source (origin + (method hg-fetch) + (uri (hg-reference + (url "https://hg.prosody.im/prosody-modules/") + (changeset changeset))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "142wrcism70nf8ffahhd961cqg2pi1h7ic8adfs3zwh0j3pnf41f")))) + (build-system trivial-build-system) + (arguments + '(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((out (assoc-ref %outputs "out")) + (source (assoc-ref %build-inputs "source"))) + (with-directory-excursion (in-vicinity source "mod_http_upload") + (install-file "mod_http_upload.lua" out)) + #t)))) + (home-page "https://modules.prosody.im/mod_http_upload.html") + (synopsis "XEP-0363: Allow clients to upload files over HTTP") + (description "This module implements XEP-0363: it allows clients to +upload files over HTTP.") + (license (package-license prosody))))) + (define-public libtoxcore (let ((revision "2") (commit "bf69b54f64003d160d759068f4816b2d9b2e1e21")) -- cgit 1.4.1