msgpack-c: use finalAttrs pattern
This commit is contained in:
parent
d0299f7fa1
commit
5107d158ab
|
@ -6,14 +6,14 @@
|
||||||
, zlib
|
, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "msgpack-c";
|
pname = "msgpack-c";
|
||||||
version = "6.0.0";
|
version = "6.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "msgpack";
|
owner = "msgpack";
|
||||||
repo = "msgpack-c";
|
repo = "msgpack-c";
|
||||||
rev = "refs/tags/c-${version}";
|
rev = "refs/tags/c-${finalAttrs.version}";
|
||||||
hash = "sha256-TfC37QKwqvHxsLPgsEqJYkb7mpRQekbntbBPV4v4FO8=";
|
hash = "sha256-TfC37QKwqvHxsLPgsEqJYkb7mpRQekbntbBPV4v4FO8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DMSGPACK_BUILD_EXAMPLES=OFF" # examples are not installed even if built
|
"-DMSGPACK_BUILD_EXAMPLES=OFF" # examples are not installed even if built
|
||||||
] ++ lib.optional (!doCheck) "-DMSGPACK_BUILD_TESTS=OFF";
|
] ++ lib.optional (!finalAttrs.doCheck) "-DMSGPACK_BUILD_TESTS=OFF";
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
gtest
|
gtest
|
||||||
|
@ -37,8 +37,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