2022-11-21 17:40:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake
|
|
|
|
# passthru.tests
|
|
|
|
, tmux
|
|
|
|
, fcft
|
|
|
|
, arrow-cpp
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "utf8proc";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JuliaStrings";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-Sgh8vTbclUV+lFZdR29PtNUy8F+9L/OAXk647B+l2mg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
2020-12-25 13:55:36 +00:00
|
|
|
"-DUTF8PROC_ENABLE_TESTING=ON"
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit fcft tmux arrow-cpp;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Clean C library for processing UTF-8 Unicode data";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://juliastrings.github.io/utf8proc/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2021-12-24 04:21:11 +00:00
|
|
|
maintainers = [ maintainers.ftrvxmtrx maintainers.sternenseemann ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|