yarn: 1.22.15 -> 1.22.17 (#144974)

authored by Damien Cassou and committed by GitHub 024f518e 54ef803b

+5 -3
+5 -3
pkgs/development/tools/yarn/default.nix
··· 1 - { lib, stdenv, nodejs, fetchzip }: 2 3 stdenv.mkDerivation rec { 4 pname = "yarn"; 5 - version = "1.22.15"; 6 7 src = fetchzip { 8 url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"; 9 - sha256 = "1xw9z55wvij6x0dns6z0xydywvlc80kgvsh3w4xxkq9cbiman1v6"; 10 }; 11 12 buildInputs = [ nodejs ]; ··· 17 ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarn 18 ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarnpkg 19 ''; 20 21 meta = with lib; { 22 homepage = "https://yarnpkg.com/";
··· 1 + { lib, stdenv, nodejs, fetchzip, testVersion, yarn }: 2 3 stdenv.mkDerivation rec { 4 pname = "yarn"; 5 + version = "1.22.17"; 6 7 src = fetchzip { 8 url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"; 9 + sha256 = "1skzlyv2976bl1063f94422jbjy4ns1nxl622biizq31z4821yvj"; 10 }; 11 12 buildInputs = [ nodejs ]; ··· 17 ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarn 18 ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarnpkg 19 ''; 20 + 21 + passthru.tests = testVersion { package = yarn; }; 22 23 meta = with lib; { 24 homepage = "https://yarnpkg.com/";