Skip to content

pnpm: convert to alias - #522535

Open
Scrumplex wants to merge 1 commit into
NixOS:masterfrom
Scrumplex:pkgs/pnpm/alias
Open

Scrumplex wants to merge 1 commit into
NixOS:masterfrom
Scrumplex:pkgs/pnpm/alias

Conversation

@Scrumplex

Copy link
Copy Markdown
Member

This should not be merged before branch off!

To prevent usage of pnpm in nixpkgs, convert it to a proper alias.
pnpm updates often break our tooling, which means we have to do treewide
changes for some pnpm version updates. By forcing packages to pin to
a certain pnpm version, we can avoid this issue.

Things done

To prevent usage of `pnpm` in nixpkgs, convert it to a proper alias.
pnpm updates often break our tooling, which means we have to do treewide
changes for some pnpm version updates. By forcing packages to pin to
a certain pnpm version, we can avoid this issue.

Signed-off-by: Sefa Eyeoglu <[email protected]>
@Scrumplex Scrumplex added the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label May 21, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from gepbird May 21, 2026 08:10
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment labels May 21, 2026

@gepbird gepbird left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree encouraging people to use pinned pnpm versions, but how does moving it from all-packages.nix to aliases.nix help with this?

On this PR I replaced pnpm_11 with pnpm for autobrr and it was building just like before. Doesn't this only apply to 3rd party nixpkgs imports which disable aliases?

@gepbird gepbird removed the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label May 28, 2026
@gepbird gepbird mentioned this pull request May 28, 2026
4 of 13 tasks
@Scrumplex

Copy link
Copy Markdown
Member Author

When nixpkgs CI evals a PR aliases are disabled. So basically nixpkgs CI will catch and prevent usage of the alias

@gepbird

gepbird commented May 28, 2026

Copy link
Copy Markdown
Contributor

When nixpkgs CI evals a PR aliases are disabled. So basically nixpkgs CI will catch and prevent usage of the alias

That's good to know, thanks :)

Isn't the current aliases.nix file meant to deprecate packages? I think keeping a long term alias to latest would be nice (which is why other packages like nodejs put the "alias" in all-packages.nix IIUC). Won't automated scripts turn this alias into a warning and throw later? I'm not sure if it's still being used as I heard there will be another form of aliases.

@Hythera Hythera mentioned this pull request Jun 10, 2026
3 of 14 tasks
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants