2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-06-01 13:14:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "utf8cpp";
|
2023-09-29 07:45:14 +00:00
|
|
|
version = "3.2.5";
|
2020-06-01 13:14:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nemtrif";
|
|
|
|
repo = "utfcpp";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2023-09-29 07:45:14 +00:00
|
|
|
sha256 = "sha256-cWiGggn2GP25K/8eopvnFPq6iwcBteNI3i9Lo1Sr+ig=";
|
2020-06-01 13:14:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-11-03 10:09:17 +00:00
|
|
|
# Tests fail on darwin, probably due to a bug in the test framework:
|
|
|
|
# https://github.com/nemtrif/utfcpp/issues/84
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2020-06-01 13:14:31 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-06-01 13:14:31 +00:00
|
|
|
homepage = "https://github.com/nemtrif/utfcpp";
|
2023-09-29 18:50:45 +00:00
|
|
|
changelog = "https://github.com/nemtrif/utfcpp/releases/tag/v${version}";
|
2020-06-01 13:14:31 +00:00
|
|
|
description = "UTF-8 with C++ in a Portable Way";
|
2021-10-06 22:09:41 +00:00
|
|
|
license = licenses.boost;
|
2020-06-01 13:14:31 +00:00
|
|
|
maintainers = with maintainers; [ jobojeha ];
|
2021-03-10 11:00:13 +00:00
|
|
|
platforms = platforms.all;
|
2020-06-01 13:14:31 +00:00
|
|
|
};
|
|
|
|
}
|