From 68a4b6d2d28c76ced527d363152afb997a127388 Mon Sep 17 00:00:00 2001 From: Rene Saavedra Date: Sun, 28 Feb 2016 16:25:00 -0600 Subject: [PATCH] gnu: Add liboauth. --- gnu/packages/liboauth.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gnu/packages/liboauth.scm diff --git a/gnu/packages/liboauth.scm b/gnu/packages/liboauth.scm new file mode 100644 index 0000000..5552b2d --- /dev/null +++ b/gnu/packages/liboauth.scm @@ -0,0 +1,36 @@ +(define-module (gnu packages liboauth) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (gnu packages gnuzilla) + #:use-module (gnu packages pkg-config)) + +(define-public liboauth + (package + (name "liboauth") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/liboauth/" + name "-" version ".tar.gz")) + (sha256 + (base32 + "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd")))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags '("--enable-nss"))) ; instead of OpenSSL. + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("nss" ,nss))) + (home-page "https://sourceforge.net/projects/liboauth") + (synopsis "Collection of POSIX-C functions implementing the OAuth API") + (description + "Liboauth provides functions to escape and encode stings according to +OAuth specifications and offers high-level functionality built on top to sign +requests or verify signatures using either NSS or OpenSSL for calculating +the hash/signatures.") + (license license:gpl2+))) ; distributed under MIT or GPL. -- 2.6.3