diff options
author | Clément Lassieur <clement@lassieur.org> | 2019-01-07 11:52:37 +0100 |
---|---|---|
committer | Clément Lassieur <clement@lassieur.org> | 2019-01-07 14:15:57 +0100 |
commit | e0aa5b5bbfd0b261d322ba8b0892c45e9434230c (patch) | |
tree | 84d0c56c1e05f7ee9e67f7e552cd891435411098 /gnu/packages/messaging.scm | |
parent | e942813aac7651986b556407956f61943578eb4d (diff) | |
download | guix-e0aa5b5bbfd0b261d322ba8b0892c45e9434230c.tar.gz |
gnu: Add prosody-http-upload.
* gnu/packages/messaging.scm (prosody-http-upload): New variable.
Diffstat (limited to 'gnu/packages/messaging.scm')
-rw-r--r-- | gnu/packages/messaging.scm | 33 |
1 files changed, 33 insertions, 0 deletions
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")) |