c8b1d4fa6d
Diff: https://github.com/msgpack/msgpack-c/compare/refs/tags/c-6.0.0...c-6.0.1 Changelog: https://github.com/msgpack/msgpack-c/blob/refs/tags/c-6.0.1/CHANGELOG.md
45 lines
1,007 B
Nix
45 lines
1,007 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gtest
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "msgpack-c";
|
|
version = "6.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msgpack";
|
|
repo = "msgpack-c";
|
|
rev = "refs/tags/c-${finalAttrs.version}";
|
|
hash = "sha256-BXnK7xNRdZvbSz7tERf/PDJkmxbqAC6trH+h36O/v6k=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "MSGPACK_BUILD_EXAMPLES" false) # examples are not installed even if built
|
|
(lib.cmakeBool "MSGPACK_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
];
|
|
|
|
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/${finalAttrs.src.rev}/CHANGELOG.md";
|
|
license = licenses.boost;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
})
|