2016-05-15 06:52:29 +02:00
|
|
|
{ stdenv, fetchFromGitHub, libtool }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmpack-${version}";
|
2016-06-04 17:58:01 +02:00
|
|
|
version = "1.0.3-rev${rev}";
|
2016-08-22 12:15:41 +02:00
|
|
|
rev = "80bd55ea677e70b041f65a4b99438c1f059cce4b";
|
2016-05-15 06:52:29 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tarruda";
|
|
|
|
repo = "libmpack";
|
2016-06-04 17:58:01 +02:00
|
|
|
inherit rev;
|
2016-08-22 12:15:41 +02:00
|
|
|
sha256 = "1whnbgxd5580h59kvc2xgx6ymw7nk9kz6r4ajgsfv6c6h2xbwbl3";
|
2016-05-15 06:52:29 +02:00
|
|
|
};
|
2016-06-12 04:00:47 +02:00
|
|
|
LIBTOOL = "libtool";
|
2016-05-15 06:52:29 +02: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";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/tarruda/libmpack/;
|
2016-05-15 06:52:29 +02:00
|
|
|
license = licenses.mit;
|
2016-06-04 17:58:01 +02:00
|
|
|
maintainers = with maintainers; [ lovek323 garbas ];
|
2016-06-13 20:14:20 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-05-15 06:52:29 +02:00
|
|
|
};
|
|
|
|
}
|