Patchwork [1/2] gnu: Add c-toxcore.

login
register
mail settings
Submitter ng0
Date Dec. 15, 2016, 7:14 p.m.
Message ID <20161215191415.7797-2-ng0@libertad.pw>
Download mbox | patch
Permalink /patch/18494/
State New
Headers show

Comments

ng0 - Dec. 15, 2016, 7:14 p.m.
* gnu/packages/messaging.scm (c-toxcore): New variable.
---
 gnu/packages/messaging.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
Leo Famulari - Dec. 17, 2016, 7:01 p.m.
On Thu, Dec 15, 2016 at 07:14:14PM +0000, ng0 wrote:
> * gnu/packages/messaging.scm (c-toxcore): New variable.

> +    (version "0.1.0")

I see a new release:

https://github.com/TokTok/c-toxcore/tree/v0.1.1

> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://github.com/TokTok/c-toxcore/archive/v"
> +                           version ".tar.gz"))

Is this the canonical source of c-toxcore? What is its relationship to
<https://github.com/irungentoo/toxcore>?

> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'autoconf
> +           (lambda _
> +             (zero? (system* "autoreconf" "-vfi")))))

Is there no bootstrapped tarball? Okay if not, I'm just wondering.
ng0 - Dec. 18, 2016, 8:51 a.m.
Leo Famulari <leo@famulari.name> writes:

> On Thu, Dec 15, 2016 at 07:14:14PM +0000, ng0 wrote:
>> * gnu/packages/messaging.scm (c-toxcore): New variable.
>
>> +    (version "0.1.0")
>
> I see a new release:
>
> https://github.com/TokTok/c-toxcore/tree/v0.1.1

They release very quickly. I can only update this on monday if
I'm lucky, possibly later. It's okay if we add the 0.1.0 and
update afterwards I think.

>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (string-append "https://github.com/TokTok/c-toxcore/archive/v"
>> +                           version ".tar.gz"))
>
> Is this the canonical source of c-toxcore? What is its relationship to
> <https://github.com/irungentoo/toxcore>?

Yes, see toktok.github.io or what it was. c-toxcore seems to be
where every client is moving to, why how and what reasons there
are that it came to be, I'm not really interested in. There's
just a pull request to change to c-toxcore for every client, but
not all of them yet I think. So we need both at the moment.

>> +    (arguments
>> +     `(#:phases
>> +       (modify-phases %standard-phases
>> +         (add-after 'unpack 'autoconf
>> +           (lambda _
>> +             (zero? (system* "autoreconf" "-vfi")))))
>
> Is there no bootstrapped tarball? Okay if not, I'm just wondering.

Sadly no.

Patch

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 8660915bb..dcea40836 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -622,6 +622,43 @@  protocols.")
       (license license:gpl3+)
       (home-page "https://tox.chat"))))
 
+(define-public c-toxcore
+  (package
+    (name "c-toxcore")
+    (version "0.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/TokTok/c-toxcore/archive/v"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0mx79da7bhv2bba5x4nx4ld8rb0vmrs84jabk5cliinpnwnim24n"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("check" ,check)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libsodium" ,libsodium)
+       ("opus" ,opus)
+       ("libvpx" ,libvpx)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'autoconf
+           (lambda _
+             (zero? (system* "autoreconf" "-vfi")))))
+       #:tests? #f)) ; FIXME: Testsuite fails, needs internet connection.
+    (synopsis "Library for the Tox encrypted messenger protocol")
+    (description
+     "Official fork of the C library implementation of the Tox encrypted messenger protocol.")
+    (license license:gpl3+)
+    (home-page "https://tox.chat")))
+
 (define-public utox
   (package
    (name "utox")