about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-08-23 23:41:50 +0200
committerGitHub <noreply@github.com>2020-08-23 17:41:50 -0400
commit7daac927676b499dbe7e92d987a1730ad7ce647d (patch)
tree724742d984e7dd500993dc74a0aff01aab89bda0 /pkgs
parent9ed4ff16ac9f1d94f5d9efc40f2f737835b950c1 (diff)
utf8proc: install pkg-config file (#96087)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/utf8proc/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/utf8proc/default.nix b/pkgs/development/libraries/utf8proc/default.nix
index 00c09179f1fda..e08aea2e1ee5a 100644
--- a/pkgs/development/libraries/utf8proc/default.nix
+++ b/pkgs/development/libraries/utf8proc/default.nix
@@ -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/";