restic: Replace rec with finalAttrs; add djds@ to maintainers (#445402)

This commit is contained in:
Fernando Rodrigues
2025-11-06 15:48:01 +00:00
committed by GitHub

View File

@@ -12,14 +12,14 @@
python3, python3,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "restic"; pname = "restic";
version = "0.18.1"; version = "0.18.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "restic"; owner = "restic";
repo = "restic"; repo = "restic";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-lLinqZUOsZCPPybvVDB1f8o9Hl5qKYi0eHwJAaydsD8="; hash = "sha256-lLinqZUOsZCPPybvVDB1f8o9Hl5qKYi0eHwJAaydsD8=";
}; };
@@ -72,15 +72,16 @@ buildGoModule rec {
meta = { meta = {
homepage = "https://restic.net"; homepage = "https://restic.net";
changelog = "https://github.com/restic/restic/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/restic/restic/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "Backup program that is fast, efficient and secure"; description = "Backup program that is fast, efficient and secure";
platforms = with lib.platforms; linux ++ darwin; platforms = with lib.platforms; linux ++ darwin;
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
mbrgm mbrgm
djds
dotlambda dotlambda
ryan4yin ryan4yin
]; ];
mainProgram = "restic"; mainProgram = "restic";
}; };
} })