From 320dfaba2d92d3ad7bb70cd55b20d83484f7f967 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 1 Nov 2024 13:43:12 +0100 Subject: [PATCH] bencodetools: unstable-2022-05-11 -> 1.0.1 --- pkgs/by-name/be/bencodetools/package.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/be/bencodetools/package.nix b/pkgs/by-name/be/bencodetools/package.nix index 6e7c827b097a..26b069f8b17e 100644 --- a/pkgs/by-name/be/bencodetools/package.nix +++ b/pkgs/by-name/be/bencodetools/package.nix @@ -2,17 +2,18 @@ stdenv, lib, fetchFromGitLab, + gitUpdater, }: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "bencodetools"; - version = "unstable-2022-05-11"; + version = "1.0.1"; src = fetchFromGitLab { owner = "heikkiorsila"; repo = "bencodetools"; - rev = "384d78d297a561dddbbd0f4632f0c74c0db41577"; - hash = "sha256-FQ+U4cya3CfUb4BVpqtOrrFKSlciwTVxrROOkRNOybQ="; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-5Y1r6+aVtK22lYr2N+YUPPdUts9PIF9I/Pq/mI+WqQs="; }; postPatch = '' @@ -34,6 +35,8 @@ stdenv.mkDerivation { runHook postInstallCheck ''; + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; + meta = { description = "Collection of tools for manipulating bencoded data"; homepage = "https://gitlab.com/heikkiorsila/bencodetools"; @@ -42,4 +45,4 @@ stdenv.mkDerivation { mainProgram = "bencat"; platforms = lib.platforms.unix; }; -} +})