git.iko.soy/typeable/nixpkgs
on master help sign in
libmpack: fix darwin build

On darwin we need the correct prefix during the buildPhase, otherwise the dynamic libraries have an incorrect install_name.

commitd7039d5029f248617e5e29c6d981e89e5b1bec78 authorDaiderd Jordan <daiderd@gmail.com> dateThu 16 Nov 2017, 22:57 (9 years ago) parentb8ddde4
1 file changed+5−5
pkgs/development/libraries/libmpack/default.nix+5−5
pkgs/development/libraries/libmpack/default.nix+5−5
@@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
99 rev = version;
1010 sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2";
1111 };
12− LIBTOOL = "libtool";
13− buildInputs = [ libtool ];
14− preInstall = ''
15− export PREFIX=$out
16− '';
12+
13+ nativeBuildInputs = [ libtool ];
14+
15+ makeFlags = [ "LIBTOOL=libtool" "PREFIX=$(out)" ];
16+
1717 meta = with stdenv.lib; {
1818 description = "Simple implementation of msgpack in C";
1919 homepage = https://github.com/tarruda/libmpack/;