2020-08-19 21:12:32 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2014-12-08 20:53:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-06 13:30:33 +01:00
|
|
|
pname = "utf8proc";
|
2020-11-27 00:07:01 +00:00
|
|
|
version = "2.6.0";
|
2014-12-08 20:53:52 +00:00
|
|
|
|
2019-05-06 13:30:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JuliaStrings";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-27 00:07:01 +00:00
|
|
|
sha256 = "0czk8xw1jra0fjf6w4bcaridyz3wz2br3v7ik1g7z0j5grx9n8r1";
|
2014-12-08 20:53:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-19 21:12:32 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
2014-12-08 20:53:52 +00:00
|
|
|
|
2020-08-23 22:41:50 +01:00
|
|
|
# the pkg-config file is not created in the cmake installation
|
|
|
|
# process, so we use the Makefile and install it manually
|
|
|
|
# see https://github.com/JuliaStrings/utf8proc/issues/198
|
|
|
|
preConfigure = "make libutf8proc.pc prefix=$out";
|
|
|
|
postInstall = "install -Dm644 ../libutf8proc.pc -t $out/lib/pkgconfig/";
|
|
|
|
|
2015-05-29 20:48:46 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A clean C library for processing UTF-8 Unicode data";
|
2019-05-06 13:30:33 +01:00
|
|
|
homepage = "https://juliastrings.github.io/utf8proc/";
|
2015-05-29 20:48:46 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.ftrvxmtrx ];
|
2014-12-08 20:53:52 +00:00
|
|
|
};
|
|
|
|
}
|