msgpack-c: init at 6.0.0

This commit is contained in:
Nick Cao 2023-06-22 17:18:40 +08:00
parent f1992487d6
commit 99095c72db
No known key found for this signature in database
2 changed files with 46 additions and 0 deletions

View 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 ];
};
}

View file

@ -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 { };