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