msgpack-c: init at 6.0.0
This commit is contained in:
parent
f1992487d6
commit
99095c72db
2 changed files with 46 additions and 0 deletions
44
pkgs/development/libraries/msgpack-c/default.nix
Normal file
44
pkgs/development/libraries/msgpack-c/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, gtest
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "msgpack-c";
|
||||
version = "6.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "msgpack";
|
||||
repo = "msgpack-c";
|
||||
rev = "refs/tags/c-${version}";
|
||||
hash = "sha256-TfC37QKwqvHxsLPgsEqJYkb7mpRQekbntbBPV4v4FO8=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DMSGPACK_BUILD_EXAMPLES=OFF" # examples are not installed even if built
|
||||
] ++ lib.optional (!doCheck) "-DMSGPACK_BUILD_TESTS=OFF";
|
||||
|
||||
checkInputs = [
|
||||
gtest
|
||||
zlib
|
||||
];
|
||||
|
||||
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
||||
|
||||
meta = with lib; {
|
||||
description = "MessagePack implementation for C";
|
||||
homepage = "https://github.com/msgpack/msgpack-c";
|
||||
changelog = "https://github.com/msgpack/msgpack-c/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.boost;
|
||||
maintainers = with maintainers; [ nickcao ];
|
||||
};
|
||||
}
|
|
@ -23305,6 +23305,8 @@ with pkgs;
|
|||
|
||||
msgpack = callPackage ../development/libraries/msgpack { };
|
||||
|
||||
msgpack-c = callPackage ../development/libraries/msgpack-c { };
|
||||
|
||||
msoffcrypto-tool = with python3.pkgs; toPythonApplication msoffcrypto-tool;
|
||||
|
||||
msilbc = callPackage ../development/libraries/msilbc { };
|
||||
|
|
Loading…
Reference in a new issue