-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn: add yarnpkg bin alias output #44133
Conversation
@@ -15,6 +15,7 @@ stdenv.mkDerivation rec { | |||
mkdir -p $out/{bin,libexec/yarn/} | |||
cp -R . $out/libexec/yarn | |||
makeWrapper $out/libexec/yarn/bin/yarn.js $out/bin/yarn | |||
makeWrapper $out/libexec/yarn/bin/yarn.js $out/bin/yarnpkg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would symlinks work for both cases?
I am thinking we should just move to using |
cc @offlinehacker who added this package in the first place. |
@matthewbauer I agree, and I tried to make that change earlier in the year (#35063). Updated to simply symlink. The wrappers work fine, but I don't see why they'd be necessary. |
Ok, sorry hadn't seen that. For now this seems fine then. We probably want to fix the nodePackages thing though so that patches work correctly. |
Because the hadoop project also provides a binary `yarn`, the yarn project [added this alias to help people with both hadoop and yarn installed](yarnpkg/yarn#673 (comment)). Some scripts in the wild use this alias for the same reason.
Updated to fix merge conflict. |
Motivation for this change
Because the hadoop project also provides a binary
yarn
, the yarn project added this alias to help people with both hadoop and yarn installed. Some scripts in the wild use this alias for the same reason.With this change, those scripts are usable with the nixpkgs yarn package.
Things done
sandbox
innix.conf
on non-NixOS)[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)