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";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JuliaStrings";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-/lSD78kj133rpcSAOh8T8XFW/Z0c3JKkGQM5Z6DcMtU=";
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A clean C library for processing UTF-8 Unicode data";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|