mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 00:34:00 +00:00
Merge pull request #44133 from nicknovitski/patch-3
yarn: add yarnpkg bin alias output
This commit is contained in:
commit
a89857b812
@ -1,4 +1,4 @@
|
||||
{ stdenv, nodejs, fetchzip, makeWrapper }:
|
||||
{ stdenv, nodejs, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "yarn-${version}";
|
||||
@ -9,12 +9,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0bk006zs1bk6nwj9x07ry314fgxi21sk79h1paljbs6yzrv62h4g";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper nodejs ];
|
||||
buildInputs = [ nodejs ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,libexec/yarn/}
|
||||
cp -R . $out/libexec/yarn
|
||||
makeWrapper $out/libexec/yarn/bin/yarn.js $out/bin/yarn
|
||||
ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarn
|
||||
ln -s $out/libexec/yarn/bin/yarn.js $out/bin/yarnpkg
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user