biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / msgpack-tools / default.nix
blob5b3bc7b1472cd654846ede6698872c45f62b791e
1 { lib, stdenv, fetchurl, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "msgpack-tools";
5   version = "0.6";
7   src = fetchFromGitHub {
8     owner = "ludocode";
9     repo = "msgpack-tools";
10     rev = "v${version}";
11     sha256 = "1ygjk25zlpqjckxgqmahnz999704zy2bd9id6hp5jych1szkjgs5";
12   };
14   libb64 = fetchurl {
15     url = "mirror://sourceforge/libb64/libb64-1.2.1.zip";
16     sha256 = "1chlcc8qggzxnbpy5wrda533xyz38dk20w9wl4srrzawm45ny410";
17   };
19   rapidjson = fetchurl {
20     url = "https://github.com/miloyip/rapidjson/archive/99ba17bd66a85ec64a2f322b68c2b9c3b77a4391.tar.gz";
21     sha256 = "0jxgyy5n0lf9w36dycwwgz2wici4z9dnxlsn0z6m23zaa47g3wyw";
22   };
24   mpack = fetchurl {
25     url = "https://github.com/ludocode/mpack/archive/df17e83f0fa8571b9cd0d8ccf38144fa90e244d1.tar.gz";
26     sha256 = "1br8g3rf86h8z8wbqkd50aq40953862lgn0xk7cy68m07fhqc3pg";
27   };
29   postUnpack = ''
30     mkdir $sourceRoot/contrib
31     cp ${rapidjson} $sourceRoot/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391.tar.gz
32     cp ${libb64} $sourceRoot/contrib/libb64-1.2.1.zip
33     cp ${mpack} $sourceRoot/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1.tar.gz
34   '';
36   nativeBuildInputs = [ cmake ];
38   meta = with lib; {
39     description = "Command-line tools for converting between MessagePack and JSON";
40     homepage = "https://github.com/ludocode/msgpack-tools";
41     license = licenses.mit;
42     platforms = platforms.linux ++ platforms.darwin;
43     maintainers = with maintainers; [ alibabzo ];
44   };