oniguruma: fix darwin install_name

This commit is contained in:
Daiderd Jordan 2017-10-02 22:18:23 +02:00
parent dd02fae2c4
commit 6c189c9e28
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
prePatch = stdenv.lib.optional stdenv.isDarwin ''
substituteInPlace cmake/dist.cmake \
--replace '@executable_path/''${UP_DIR}/''${INSTALL_LIB}' $out'/''${INSTALL_LIB}'
'';
meta = {
homepage = https://github.com/kkos/oniguruma;
description = "Regular expressions library";