msgpack-cxx: use finalAttrs pattern
This commit is contained in:
parent
5107d158ab
commit
a268072f4e
|
@ -6,14 +6,14 @@
|
||||||
, zlib
|
, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "msgpack-cxx";
|
pname = "msgpack-cxx";
|
||||||
version = "6.1.0";
|
version = "6.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "msgpack";
|
owner = "msgpack";
|
||||||
repo = "msgpack-c";
|
repo = "msgpack-c";
|
||||||
rev = "refs/tags/cpp-${version}";
|
rev = "refs/tags/cpp-${finalAttrs.version}";
|
||||||
hash = "sha256-VqzFmm3MmMhWyooOsz1d9gwwbn/fnnxpkCFwqKR6los=";
|
hash = "sha256-VqzFmm3MmMhWyooOsz1d9gwwbn/fnnxpkCFwqKR6los=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DMSGPACK_BUILD_DOCS=OFF" # docs are not installed even if built
|
"-DMSGPACK_BUILD_DOCS=OFF" # docs are not installed even if built
|
||||||
] ++ lib.optional doCheck "-DMSGPACK_BUILD_TESTS=ON";
|
] ++ lib.optional finalAttrs.doCheck "-DMSGPACK_BUILD_TESTS=ON";
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
zlib
|
zlib
|
||||||
|
@ -40,8 +40,8 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "MessagePack implementation for C++";
|
description = "MessagePack implementation for C++";
|
||||||
homepage = "https://github.com/msgpack/msgpack-c";
|
homepage = "https://github.com/msgpack/msgpack-c";
|
||||||
changelog = "https://github.com/msgpack/msgpack-c/blob/${src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/msgpack/msgpack-c/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||||
license = licenses.boost;
|
license = licenses.boost;
|
||||||
maintainers = with maintainers; [ nickcao ];
|
maintainers = with maintainers; [ nickcao ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue