diff --git a/pkgs/development/tools/yarn/default.nix b/pkgs/development/tools/yarn/default.nix index 518b98021079..50d29cb4a1d4 100644 --- a/pkgs/development/tools/yarn/default.nix +++ b/pkgs/development/tools/yarn/default.nix @@ -1,12 +1,12 @@ -{ lib, stdenv, nodejs, fetchzip }: +{ lib, stdenv, nodejs, fetchzip, testVersion, yarn }: stdenv.mkDerivation rec { pname = "yarn"; - version = "1.22.15"; + version = "1.22.17"; src = fetchzip { url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"; - sha256 = "1xw9z55wvij6x0dns6z0xydywvlc80kgvsh3w4xxkq9cbiman1v6"; + sha256 = "1skzlyv2976bl1063f94422jbjy4ns1nxl622biizq31z4821yvj"; }; buildInputs = [ nodejs ]; @@ -18,6 +18,8 @@ stdenv.mkDerivation rec { ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarnpkg ''; + passthru.tests = testVersion { package = yarn; }; + meta = with lib; { homepage = "https://yarnpkg.com/"; description = "Fast, reliable, and secure dependency management for javascript";