1 { lib, stdenv, nodejs, fetchzip, testers, yarn }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz";
9 sha256 = "sha256-12wUuWH+kkqxAgVYkyhIYVtexjv8DFP9kLpFLWg+h0o=";
12 buildInputs = [ nodejs ];
15 mkdir -p $out/{bin,libexec/yarn/}
16 cp -R . $out/libexec/yarn
17 ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarn
18 ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarnpkg
21 passthru.tests = testers.testVersion { package = yarn; };
24 homepage = "https://yarnpkg.com/";
25 description = "Fast, reliable, and secure dependency management for javascript";
26 license = licenses.bsd2;
27 maintainers = with maintainers; [ offline screendriver ];
28 platforms = platforms.linux ++ platforms.darwin;