1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "cppcodec";
10 version = "0.2";
11
12 src = fetchFromGitHub {
13 owner = "tplgy";
14 repo = "cppcodec";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-k4EACtDOSkTXezTeFtVdM1EVJjvGga/IQSrvDzhyaXw=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 meta = with lib; {
22 description = "Header-only C++11 library for encode/decode functions as in RFC 4648";
23 longDescription = ''
24 Header-only C++11 library to encode/decode base64, base64url, base32,
25 base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus
26 Crockford's base32.
27 '';
28 homepage = "https://github.com/tplgy/cppcodec";
29 license = licenses.mit;
30 maintainers = with maintainers; [
31 panicgh
32 raitobezarius
33 ];
34 };
35})