yarn: add passthru.updateScript

This commit is contained in:
Mario Rodas 2024-04-07 04:20:00 +00:00
parent 1a18819d4d
commit 8c29b8d726

View File

@ -4,6 +4,7 @@
, nodejs , nodejs
, stdenvNoCC , stdenvNoCC
, testers , testers
, gitUpdater
, withNode ? true , withNode ? true
}: }:
@ -38,6 +39,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
tests.version = lib.optionalAttrs withNode (testers.testVersion { tests.version = lib.optionalAttrs withNode (testers.testVersion {
package = finalAttrs.finalPackage; package = finalAttrs.finalPackage;
}); });
updateScript = gitUpdater {
url = "https://github.com/yarnpkg/yarn.git";
rev-prefix = "v";
};
}; };
meta = with lib; { meta = with lib; {