fluent-bit: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-07-29 13:00:09 +02:00
parent ab3dd1f606
commit f6438e19e5
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -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";
version = "2.1.8";
src = fetchFromGitHub {
owner = "fluent";
repo = "fluent-bit";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-iWbWkKd0Rpg0EU3H//sAxth1v1S52yPwGn1AzeC9xkA=";
};
@ -34,12 +44,12 @@ stdenv.mkDerivation rec {
--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";
homepage = "https://fluentbit.io";
changelog = "https://github.com/fluent/fluent-bit/releases/tag/v${version}";
maintainers = with maintainers; [ samrose fpletz ];
license = licenses.asl20;
platforms = platforms.linux;
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.samrose lib.maintainers.fpletz ];
platforms = lib.platforms.linux;
};
}
})