1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "utf8cpp";
10 version = "4.0.6";
11
12 src = fetchFromGitHub {
13 owner = "nemtrif";
14 repo = "utfcpp";
15 tag = "v${version}";
16 fetchSubmodules = true;
17 hash = "sha256-e8qH4eygLnQw7B8x+HN+vH8cr8fkxnTFz+PKtFJ8dGE=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 meta = {
23 homepage = "https://github.com/nemtrif/utfcpp";
24 changelog = "https://github.com/nemtrif/utfcpp/releases/tag/v${version}";
25 description = "UTF-8 with C++ in a Portable Way";
26 license = lib.licenses.boost;
27 maintainers = with lib.maintainers; [ jobojeha ];
28 platforms = lib.platforms.all;
29 };
30}