From 4212f0c4ffe43464ed7bd2e9f1a8f10e308ec792 Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Wed, 8 Nov 2017 11:16:29 +0100 Subject: [PATCH] gnu: messaging: Add libsignal-protocol-c. * gnu/packages/messaging.scm (libsignal-protocol-c): New variable. --- gnu/packages/messaging.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 72dbbcd1e..4f436b5a5 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2017 Arun Isaac ;;; Copyright © 2017 Tobias Geerinckx-Rice ;;; Copyright © 2017 Theodoros Foradis +;;; Copyright © 2017 Rutger Helling ;;; ;;; This file is part of GNU Guix. ;;; @@ -124,6 +125,39 @@ keys, no previous conversation is compromised.") (home-page "https://otr.cypherpunks.ca/") (license (list license:lgpl2.1 license:gpl2)))) +(define-public libsignal-protocol-c + (package + (name "libsignal-protocol-c") + (version "2.3.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/WhisperSystems/" + "libsignal-protocol-c/archive/v" version + ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1klz9jvbnmfc3qy2x6qcswzw14a7kyzs51dlg18yllvir1f1kz0s")))) + (arguments + `(#:tests? #f + ; Required for proper linking. + #:configure-flags '("-DBUILD_SHARED_LIBS=on"))) + ; FIXME: With the below additional flags the tests pass, however this + ; causes problems with timestamps, therefore the tests are disabled for + ; now: + ; -DCMAKE_BUILD_TYPE=Debug + ; -DBUILD_TESTING=1 + (build-system cmake-build-system) + (inputs `( ; Required for tests: + ("check", check) + ("openssl", openssl))) + (native-inputs `(("pkg-config", pkg-config))) + (home-page "https://github.com/WhisperSystems/libsignal-protocol-c") + (synopsis "Ratcheting forward secrecy protocol") + (description "libsignal-protocol-c is a ratcheting forward secrecy protocol +that works in synchronous and asynchronous messaging environments.") + (license license:gpl3))) + (define-public bitlbee (package (name "bitlbee") -- 2.15.0