From 8c29b8d726bc0e6dbaef1c6cf0439e8af3d1d307 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 7 Apr 2024 04:20:00 +0000 Subject: [PATCH] yarn: add passthru.updateScript --- pkgs/development/tools/yarn/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/tools/yarn/default.nix b/pkgs/development/tools/yarn/default.nix index 605ae1cb25eb..9d95676ec2ce 100644 --- a/pkgs/development/tools/yarn/default.nix +++ b/pkgs/development/tools/yarn/default.nix @@ -4,6 +4,7 @@ , nodejs , stdenvNoCC , testers +, gitUpdater , withNode ? true }: @@ -38,6 +39,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { tests.version = lib.optionalAttrs withNode (testers.testVersion { package = finalAttrs.finalPackage; }); + + updateScript = gitUpdater { + url = "https://github.com/yarnpkg/yarn.git"; + rev-prefix = "v"; + }; }; meta = with lib; {