2014-05-06 22:42:21 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, ruby, scatterOutputHook }:
|
2014-03-29 12:28:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.5.8";
|
|
|
|
name = "libmsgpack-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/msgpack/msgpack-c/archive/cpp-${version}.tar.gz";
|
|
|
|
sha256 = "1h6k9kdbfavmw3by5kk3raszwa64hn9k8yw9rdhvl5m8g2lks89k";
|
|
|
|
};
|
|
|
|
|
2014-05-06 22:42:21 +01:00
|
|
|
nativeBuildInputs = [ scatterOutputHook ];
|
2014-03-29 12:28:25 +00:00
|
|
|
buildInputs = [ autoconf automake libtool ruby ];
|
|
|
|
|
2014-05-06 22:42:21 +01:00
|
|
|
outputs = [ "out" "bin" ];
|
2014-03-29 12:28:25 +00:00
|
|
|
|
2014-05-06 22:42:21 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i s,glibtoolize,libtoolize, ./bootstrap
|
|
|
|
./bootstrap
|
2014-03-29 12:28:25 +00:00
|
|
|
'';
|
|
|
|
|
2014-05-06 22:42:21 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-03-29 12:28:25 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "MessagePack implementation for C and C++";
|
|
|
|
homepage = http://msgpack.org;
|
|
|
|
maintainers = [ maintainers.redbaron ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|