utfcpp: init at 4.0.9 (#489049)

This commit is contained in:
Doron Behar
2026-02-11 16:19:39 +00:00
committed by GitHub
+36
View File
@@ -0,0 +1,36 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "utfcpp";
version = "4.0.9";
src = fetchFromGitHub {
owner = "nemtrif";
repo = "utfcpp";
tag = "v${finalAttrs.version}";
hash = "sha256-0FgMKHymFOA3BM7VS8US2is8TmQlL/wWj4nSRihqcDo=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
(lib.cmakeBool "UTF8CPP_ENABLE_TESTS" true)
];
doCheck = true;
meta = {
description = "UTF-8 with C++ in a Portable Way";
homepage = "https://github.com/nemtrif/utfcpp";
license = lib.licenses.boost;
maintainers = with lib.maintainers; [ doronbehar ];
mainProgram = "utfcpp";
platforms = lib.platforms.all;
};
})