fluent-bit: use finalAttrs
pattern
This commit is contained in:
parent
ab3dd1f606
commit
f6438e19e5
1 changed files with 19 additions and 9 deletions
|
@ -1,13 +1,23 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, flex, bison, systemd, postgresql, openssl, libyaml }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, flex
|
||||||
|
, bison
|
||||||
|
, systemd
|
||||||
|
, postgresql
|
||||||
|
, openssl
|
||||||
|
, libyaml
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "fluent-bit";
|
pname = "fluent-bit";
|
||||||
version = "2.1.8";
|
version = "2.1.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "fluent";
|
owner = "fluent";
|
||||||
repo = "fluent-bit";
|
repo = "fluent-bit";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-iWbWkKd0Rpg0EU3H//sAxth1v1S52yPwGn1AzeC9xkA=";
|
hash = "sha256-iWbWkKd0Rpg0EU3H//sAxth1v1S52yPwGn1AzeC9xkA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,12 +44,12 @@ stdenv.mkDerivation rec {
|
||||||
--replace /lib/systemd $out/lib/systemd
|
--replace /lib/systemd $out/lib/systemd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
|
changelog = "https://github.com/fluent/fluent-bit/releases/tag/v${finalAttrs.version}";
|
||||||
description = "Log forwarder and processor, part of Fluentd ecosystem";
|
description = "Log forwarder and processor, part of Fluentd ecosystem";
|
||||||
homepage = "https://fluentbit.io";
|
homepage = "https://fluentbit.io";
|
||||||
changelog = "https://github.com/fluent/fluent-bit/releases/tag/v${version}";
|
license = lib.licenses.asl20;
|
||||||
maintainers = with maintainers; [ samrose fpletz ];
|
maintainers = [ lib.maintainers.samrose lib.maintainers.fpletz ];
|
||||||
license = licenses.asl20;
|
platforms = lib.platforms.linux;
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue