From bac24e86853b476642a03ec74a9ec15837c53dcc Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 8 Nov 2024 12:07:39 +0800 Subject: [PATCH] livepeer: add passthru.updateScript --- pkgs/by-name/li/livepeer/package.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/li/livepeer/package.nix b/pkgs/by-name/li/livepeer/package.nix index 6fa1c4b8e6e8..945eae96d7ec 100644 --- a/pkgs/by-name/li/livepeer/package.nix +++ b/pkgs/by-name/li/livepeer/package.nix @@ -5,6 +5,7 @@ pkg-config, ffmpeg, gnutls, + nix-update-script, }: buildGoModule rec { @@ -17,13 +18,10 @@ buildGoModule rec { src = fetchFromGitHub { owner = "livepeer"; repo = "go-livepeer"; - rev = "v${version}"; - sha256 = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU="; + rev = "refs/tags/v${version}"; + hash = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU="; }; - # livepeer_cli has a vendoring problem - subPackages = [ "cmd/livepeer" ]; - nativeBuildInputs = [ pkg-config ]; buildInputs = [ @@ -31,11 +29,13 @@ buildGoModule rec { gnutls ]; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Official Go implementation of the Livepeer protocol"; homepage = "https://livepeer.org"; - license = licenses.mit; - maintainers = with maintainers; [ elitak ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ elitak ]; mainProgram = "livepeer"; }; }