From 58b9d3d9b529ec1a1199347849810f12a77919a4 Mon Sep 17 00:00:00 2001 From: ng0 Date: Fri, 16 Sep 2016 10:01:22 +0000 Subject: [PATCH 2/4] gnu: Add libpthread_workqueue. * gnu/packages/libdispatch.scm (libpthread_workqueue): New variable. --- gnu/packages/libdispatch.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/libdispatch.scm b/gnu/packages/libdispatch.scm index 77c80c0..3159763 100644 --- a/gnu/packages/libdispatch.scm +++ b/gnu/packages/libdispatch.scm @@ -62,3 +62,33 @@ native kernel facilities.") (synopsis "kqueue(2) compatibility library") ;; event.h is bsd-2 (license (list license:expat license:bsd-2)))) + +(define-public libpthread_workqueue + (package + (name "libpthread_workqueue") + (version "0.9.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/mheily/libpwq/releases/download/v" + version "/" name "-" version ".tar.gz")) + (sha256 + (base32 + "13cikhmc6mmk7falwapph8lahig6g7j2cbzsaf5rh85xbkj9a666")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (zero? (system* "autoreconf" "--install" "--symlink" "--verbose"))))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("autoconf" ,(autoconf-wrapper)) + ("automake" ,automake) + ("libtool" ,libtool))) + (home-page "https://github.com/mheily/libpwq") + (description + "libpthread_workqueue is a POSIX threads workqueue library.") + (synopsis "Portable implementation of the pthread_workqueue API") + (license license:bsd-2))) -- 2.10.0