Message ID | 87vayv635l.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me |
---|---|
State | New |
Headers | show |
On Sat, Aug 20, 2016 at 01:22:30PM +0100, Marius Bakke wrote: > Subject: [PATCH] gnu: Add capnproto. > > * gnu/packages/serialization.scm (capnproto): New variable. Thanks, pushed as 557d3328! By the way, I noticed some other distros include a man page for capnproto. Can you look into doing something similar for us?
Leo Famulari <leo@famulari.name> writes: > On Sat, Aug 20, 2016 at 01:22:30PM +0100, Marius Bakke wrote: >> Subject: [PATCH] gnu: Add capnproto. >> >> * gnu/packages/serialization.scm (capnproto): New variable. > > Thanks, pushed as 557d3328! Cheers! > By the way, I noticed some other distros include a man page for > capnproto. Can you look into doing something similar for us? Nice find! I guess we can pull the one from Debian. From capnp.1.xml: <para>This manual page was written for the Debian system (and may be used by others).</para> Not sure how to add it though, are there other packages with multiple sources that can be used as reference? Also, Gentoo apparently decouples gtest by two `sed` commands and triggering `autoreconf`. I will try that too. Thanks! Marius
On Tue, Aug 23, 2016 at 07:30:10PM +0100, Marius Bakke wrote: > Leo Famulari <leo@famulari.name> writes: > > By the way, I noticed some other distros include a man page for > > capnproto. Can you look into doing something similar for us? > > Nice find! I guess we can pull the one from Debian. From capnp.1.xml: > > <para>This manual page was written for the Debian system > (and may be used by others).</para> > > Not sure how to add it though, are there other packages with multiple > sources that can be used as reference? Yes, check the Git package definition for an example of pulling sources from multiple locations. The git-manpages are distributed as a separate tarball, and fetched directly from (native-inputs). Although, I'm not sure how much I like downloading the man page from Debian. There's nothing explicitly wrong with it, but I'd rather not pepper our package definitions with references to random files scattered across the internet. Other opinions requested on this subject :) I had hoped the documentation could be built from the capnproto source or downloading from the capnproto project. Maybe capnproto can be convinced to adopt Debian's manpage. > Also, Gentoo apparently decouples gtest by two `sed` commands and > triggering `autoreconf`. I will try that too. Great, I look forward to hearing the results!
From 6e73e7c85a044d1da176534ed8ff046431afe617 Mon Sep 17 00:00:00 2001 From: Marius Bakke <mbakke@fastmail.com> Date: Fri, 12 Aug 2016 13:42:16 +0100 Subject: [PATCH] gnu: Add capnproto. * gnu/packages/serialization.scm (capnproto): New variable. --- gnu/packages/serialization.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index c3ce5c5..4a3278f 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> ;;; Copyright © 2016 David Craven <david@craven.ch> +;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -170,3 +171,32 @@ including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files.") (license license:expat))) + +(define-public capnproto + (package + (name "capnproto") + (version "0.5.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://capnproto.org/capnproto-c++-" + version ".tar.gz")) + (sha256 + (base32 + "1yvaadhgakskqq5wpv53hd6fc3pp17mrdldw4i5cvgck4iwprcfd")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'do-not-require-/etc/services + (lambda _ + ;; Workaround for test that tries to resolve port name from + ;; /etc/services, which is not present in build environment. + (substitute* "src/kj/async-io-test.c++" ((":http") ":80")) + #t))))) + (home-page "https://capnproto.org") + (synopsis "Capability-based RPC and serialization system") + (description + "Cap'n Proto is a very fast data interchange format and capability-based +RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster.") + (license license:expat))) -- 2.9.2