Skip to content
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

npm prettier #126804

Closed
vigilancetech-com opened this issue Jun 14, 2021 · 8 comments
Closed

npm prettier #126804

vigilancetech-com opened this issue Jun 14, 2021 · 8 comments
Labels
0.kind: packaging request Request for a new package to be added 6.topic: nodejs

Comments

@vigilancetech-com
Copy link

Project description
make a derivation to install the prettier, the "opinionated code formatter"

Metadata

@vigilancetech-com vigilancetech-com added the 0.kind: packaging request Request for a new package to be added label Jun 14, 2021
@andersk
Copy link
Contributor

andersk commented Jun 14, 2021

It’s already there: nix-env -iA nixpkgs.nodePackages.prettier.

(Although this is admittedly hard to discover with tools like nix search, since nodePackages does not have recurseIntoAttrs.)

@ethancedwards8
Copy link
Member

Perhaps it could be added to aliases.nix?

@06kellyjac
Copy link
Member

Maybe the odd really important node package should be aliased but putting recurseIntoAttrs on nodePackages so it shows up in nix search might be best.
Would adding it increase the evaluation time or are there any other negatives?

@AndersonTorres
Copy link
Member

aliases.nix is for backwards-compatibility issues.

If you want to put an alias for it, open a PR modifying all-packages.nix.

@happysalada
Copy link
Contributor

I'm going to close this since it's already packaged. Please feel free to update the issue if you feel you want anything else to be done about it.

@dhess
Copy link
Contributor

dhess commented Nov 15, 2021

There appears to be no bin/prettier in the package, at least not for the nodejs-16_x.nodePackages on nixpkgs-unstable:

$ ls -F /nix/store/lajmk0widqbg8g7q6xhxjv9pfjmxfkjj-prettier-2.4.1
lib/

@06kellyjac
Copy link
Member

It's in the normal nodePackages but not nodePackages_latest

λ ls $(nix path-info nixpkgs#nodePackages.prettier)/bin
 prettier

λ ls $(nix path-info nixpkgs#nodePackages_latest.prettier)/bin
lsd: /nix/store/mah61fapmawvg62jxgd3z889gy9gryf3-prettier-2.4.1/bin: No such file or directory (os error 2).
λ ls $(nix path-info nixpkgs#nodePackages_latest.prettier)
 lib

Please open a separate issue

@andersk
Copy link
Contributor

andersk commented Nov 15, 2021

That is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added 6.topic: nodejs
Projects
None yet
Development

No branches or pull requests

8 participants