Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / utf8proc / default.nix
blob7bdb9747472b010946cc1c956e8dbaa179a3913f
1 { lib, stdenv, fetchFromGitHub, cmake
2   # passthru.tests
3 , tmux
4 , fcft
5 , arrow-cpp
6 }:
8 stdenv.mkDerivation rec {
9   pname = "utf8proc";
10   version = "2.9.0";
12   src = fetchFromGitHub {
13     owner = "JuliaStrings";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "sha256-Sgh8vTbclUV+lFZdR29PtNUy8F+9L/OAXk647B+l2mg=";
17   };
19   nativeBuildInputs = [ cmake ];
21   cmakeFlags = [
22     "-DBUILD_SHARED_LIBS=ON"
23     "-DUTF8PROC_ENABLE_TESTING=ON"
24   ];
26   doCheck = true;
28   passthru.tests = {
29     inherit fcft tmux arrow-cpp;
30   };
32   meta = with lib; {
33     description = "A clean C library for processing UTF-8 Unicode data";
34     homepage = "https://juliastrings.github.io/utf8proc/";
35     license = licenses.mit;
36     platforms = platforms.all;
37     maintainers = [ maintainers.ftrvxmtrx maintainers.sternenseemann ];
38   };