Merge pull request #21892 from offlinehacker/pkgs/yarn/add

yarn: init at 0.18.1
This commit is contained in:
Jörg Thalheim 2017-01-14 23:54:56 +01:00 committed by GitHub
commit 97a6566348
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ stdenv, nodejs, fetchzip, makeWrapper }:
stdenv.mkDerivation rec {
name = "yarn-${version}";
version = "0.18.1";
src = fetchzip {
url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz";
sha256 = "1jkgd2d0n78jw66a0v3cgawcc9qvzjy1zp8c1wzfqf0hl5wrcv9q";
};
buildInputs = [makeWrapper nodejs];
installPhase = ''
mkdir -p $out/{bin,libexec/yarn/}
cp -R . $out/libexec/yarn
makeWrapper $out/libexec/yarn/bin/yarn.js $out/bin/yarn
'';
meta = with stdenv.lib; {
homepage = https://yarnpkg.com/;
description = "Fast, reliable, and secure dependency management for javascript";
license = licenses.bsd2;
maintainers = [ maintainers.offline ];
};
}

View File

@ -4508,6 +4508,8 @@ in
xwinmosaic = callPackage ../tools/X11/xwinmosaic {};
yarn = callPackage ../development/tools/yarn { };
yank = callPackage ../tools/misc/yank { };
yaml-merge = callPackage ../tools/text/yaml-merge { };