From 6c189c9e284b2c66efbf24d2b1ecf35d95eb6974 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 2 Oct 2017 22:18:23 +0200 Subject: [PATCH] oniguruma: fix darwin install_name --- pkgs/development/libraries/oniguruma/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/oniguruma/default.nix b/pkgs/development/libraries/oniguruma/default.nix index eccfccbaf04..b82f137ec6d 100644 --- a/pkgs/development/libraries/oniguruma/default.nix +++ b/pkgs/development/libraries/oniguruma/default.nix @@ -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";