utf8proc: install pkg-config file (#96087)

This commit is contained in:
sternenseemann 2020-08-23 23:41:50 +02:00 committed by GitHub
parent 9ed4ff16ac
commit 7daac92767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
"-DBUILD_SHARED_LIBS=ON"
];
# 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/";
meta = with stdenv.lib; {
description = "A clean C library for processing UTF-8 Unicode data";
homepage = "https://juliastrings.github.io/utf8proc/";