libmpack: fix darwin build

On darwin we need the correct prefix during the buildPhase, otherwise
the dynamic libraries have an incorrect install_name.
This commit is contained in:
Daiderd Jordan 2017-11-16 22:57:34 +01:00 committed by Orivej Desh
parent b8ddde411c
commit d7039d5029

View File

@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
rev = version;
sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2";
};
LIBTOOL = "libtool";
buildInputs = [ libtool ];
preInstall = ''
export PREFIX=$out
'';
nativeBuildInputs = [ libtool ];
makeFlags = [ "LIBTOOL=libtool" "PREFIX=$(out)" ];
meta = with stdenv.lib; {
description = "Simple implementation of msgpack in C";
homepage = https://github.com/tarruda/libmpack/;