2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-06-01 15:14:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "utf8cpp";
|
2020-12-29 12:02:34 +01:00
|
|
|
version = "3.1.2";
|
2020-06-01 15:14:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nemtrif";
|
|
|
|
repo = "utfcpp";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2020-12-29 12:02:34 +01:00
|
|
|
sha256 = "sha256-l5sneFsuvPDIRni2x+aR9fmQ9bzXNnIiP9EzZ63sNtg=";
|
2020-06-01 15:14:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=None"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
"-DINSTALL_GTEST=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-06-01 15:14:31 +02:00
|
|
|
homepage = "https://github.com/nemtrif/utfcpp";
|
|
|
|
description = "UTF-8 with C++ in a Portable Way";
|
|
|
|
license = licenses.free;
|
|
|
|
maintainers = with maintainers; [ jobojeha ];
|
2021-03-10 12:00:13 +01:00
|
|
|
platforms = platforms.all;
|
2020-06-01 15:14:31 +02:00
|
|
|
};
|
|
|
|
}
|