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:
parent
b8ddde411c
commit
d7039d5029
@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
|
|||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2";
|
sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2";
|
||||||
};
|
};
|
||||||
LIBTOOL = "libtool";
|
|
||||||
buildInputs = [ libtool ];
|
nativeBuildInputs = [ libtool ];
|
||||||
preInstall = ''
|
|
||||||
export PREFIX=$out
|
makeFlags = [ "LIBTOOL=libtool" "PREFIX=$(out)" ];
|
||||||
'';
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Simple implementation of msgpack in C";
|
description = "Simple implementation of msgpack in C";
|
||||||
homepage = https://github.com/tarruda/libmpack/;
|
homepage = https://github.com/tarruda/libmpack/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user