mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
yarn: add passthru.updateScript
This commit is contained in:
parent
1a18819d4d
commit
8c29b8d726
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user