mesos-dns: use finalAttrs

This commit is contained in:
Aaron Jheng 2025-05-29 11:04:32 +08:00 committed by Masum Reza
parent 42eee8e4ee
commit 795db2ce06

View file

@ -4,14 +4,14 @@
fetchFromGitHub, fetchFromGitHub,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "mesos-dns"; pname = "mesos-dns";
version = "0.9.3"; version = "0.9.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "m3scluster"; owner = "m3scluster";
repo = "mesos-dns"; repo = "mesos-dns";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-/zcjQ2AxZ17rAxrRmfztj5gH1pu2QswJgaCE022FieU="; hash = "sha256-/zcjQ2AxZ17rAxrRmfztj5gH1pu2QswJgaCE022FieU=";
}; };
@ -26,10 +26,10 @@ buildGoModule rec {
meta = { meta = {
homepage = "https://m3scluster.github.io/mesos-dns/"; homepage = "https://m3scluster.github.io/mesos-dns/";
changelog = "https://github.com/m3scluster/mesos-dns/releases/tag/v${version}"; changelog = "https://github.com/m3scluster/mesos-dns/releases/tag/v${finalAttrs.version}";
description = "DNS-based service discovery for Mesos"; description = "DNS-based service discovery for Mesos";
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aaronjheng ]; maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "mesos-dns"; mainProgram = "mesos-dns";
}; };
} })