From 84574de5c7c4c74e914c223586269a955e4202e8 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 5 Feb 2022 23:26:36 +0100 Subject: [PATCH 2/3] gnu: Add cppcodec. * gnu/packages/crates-io.scm (cppcodec): New variable. diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index d9c2c7f254..1188df5348 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -757,6 +757,30 @@ (define-public libnitrokey (description "This packate provides communication library for Nitrokey.") (license license:lgpl3))) +(define-public cppcodec + (package + (name "cppcodec") + (version "0.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tplgy/cppcodec") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0z39f8w0zvra874az0f67ck1al9kbpaidpilggbl8jnfs05010ck")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f)) ;no test suite + (native-inputs (list pkg-config qttools)) + (inputs (list catch-framework2)) + (home-page "https://github.com/tplgy/cppcodec") + (synopsis "Header only C++11 library to encode/decode base64, etc.") + (description "This package provide header-only C++11 library to +encode/decode base64, base64url, base32, base32hex and hex.") + (license license:expat))) + (define-public nitrocli (package (name "nitrocli") -- 2.34.0