summary refs log tree commit diff
path: root/pkgs/development/libraries/libmpack
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-11-16 22:57:34 +0100
committerOrivej Desh <orivej@gmx.fr>2017-11-29 02:38:16 +0000
commitd7039d5029f248617e5e29c6d981e89e5b1bec78 (patch)
tree158783ffdf86a15dc6c5064b7527b5f882cc4356 /pkgs/development/libraries/libmpack
parentb8ddde411c99ce50d737c8402e6c53ae0532c81c (diff)
downloadnixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.tar
nixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.tar.gz
nixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.tar.bz2
nixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.tar.lz
nixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.tar.xz
nixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.tar.zst
nixpkgs-d7039d5029f248617e5e29c6d981e89e5b1bec78.zip
libmpack: fix darwin build
On darwin we need the correct prefix during the buildPhase, otherwise
the dynamic libraries have an incorrect install_name.
Diffstat (limited to 'pkgs/development/libraries/libmpack')
-rw-r--r--pkgs/development/libraries/libmpack/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libmpack/default.nix b/pkgs/development/libraries/libmpack/default.nix
index e9bc2a646b7..2754c726da2 100644
--- a/pkgs/development/libraries/libmpack/default.nix
+++ b/pkgs/development/libraries/libmpack/default.nix
@@ -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/;