nixpkgs/pkgs/development/tools/yarn/default.nix
Vladyslav Mykhailichenko 78f661fd5e yarn: 1.5.1 -> 1.6.0
2018-04-16 13:37:41 +03:00

27 lines
736 B
Nix

{ stdenv, nodejs, fetchzip, makeWrapper }:
stdenv.mkDerivation rec {
name = "yarn-${version}";
version = "1.6.0";
src = fetchzip {
url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz";
sha256 = "0bblp1jy4s9y5rpcqn40w61qwsmxr342xkcn7ykk88i7sng2cgfw";
};
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 ];
};
}