2016-05-15 05:52:29 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libtool }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmpack-${version}";
|
2016-06-04 16:58:01 +01:00
|
|
|
version = "1.0.3-rev${rev}";
|
|
|
|
rev = "071d944c9ff7b7fbd2c3c19d1fd1a231363ddeea";
|
2016-05-15 05:52:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tarruda";
|
|
|
|
repo = "libmpack";
|
2016-06-04 16:58:01 +01:00
|
|
|
inherit rev;
|
|
|
|
sha256 = "1h3pbmykm69gfyi0wz647gz5836a6f3jc4azzll7i3mkpc11gcrd";
|
2016-05-15 05:52:29 +01:00
|
|
|
};
|
2016-06-12 03:00:47 +01:00
|
|
|
LIBTOOL = "libtool";
|
2016-05-15 05:52:29 +01:00
|
|
|
buildInputs = [ libtool ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/libmpack
|
|
|
|
cp -R build/* $out/lib/libmpack
|
|
|
|
rm -rf $out/lib/libmpack/debug
|
|
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple implementation of msgpack in C";
|
|
|
|
homepage = "https://github.com/tarruda/libmpack/";
|
|
|
|
license = licenses.mit;
|
2016-06-04 16:58:01 +01:00
|
|
|
maintainers = with maintainers; [ lovek323 garbas ];
|
2016-05-15 05:52:29 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|