-
-
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
Add nixpkgs tooling for pnpm-lock.yaml
#231513
Comments
cc @NixOS/node |
just as an idea, did someone bring up to upstream https://github.com/cvent/pnpm-lock-export directly into pnpm jet ? |
they at least have an import ... |
@6543: I believe this discussion is about a similar subject.
To be fair, I think their stance is quite rational. |
|
I'm not proud of it, but I hacked pnpm-lock-export to support converting the newer lock file to a yarn lock: https://github.com/adamcstephens/pnpm-lock-export/commit/d1a0fcfd39099e66c6eecf3896dadf624b6d3da1 I'm a bit over my head here, but I am able to convert the woodpecker lock, which was my goal. |
https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/pot/default.nix I added a pnpm package by fetching deps with pnpm. It's pretty simple. What can a |
Having a I think it's good to have |
I think Anyway, having builders for trivial packages makes for less boilerplate and communicates what is going on up front, which is a win. Builders also provide a very clear approach to packaging: They mainly work to smooth out idiosyncrasies e.g. workspaces, package managers. Part of that means developing and using functions like |
This will break as soon as anything in pnpm's store format changes. |
Yes, fetchers break when format changes. |
@linsui The reason that Every other fetcher in Nixpkgs (bar Cargo and Go for exactly this reason) does not cause breakages on random updates. |
Hi, I've discovered a working version of pnpm2nix, and it works really well: |
@MarcelCoding this is using |
any updates on this end? |
How about testing pnpm2nix in nixpkgs? There are already many packages linked to this issue which hare using pnpm. |
I have just created #290715 which moves the pnpm code from |
It case it's helpful for anyone, I made a fork of |
I'm not sure how relevant this is, but pnpm v9, released yesterday, included changes to the lockfile format:
|
This is still an issue. While #290715 does add |
An install hook like buildNpmPackage has should be pretty easy to do in theory using |
Issue description
We have
buildNpmPackage
forpackage-lock.json
, andmkYarnPackage
foryarn.lock
.However we currently have no tooling available in nixpkgs to build JS packages that make use of
pnpm-lock.yaml
.Proposed solution
Add support to
pnpm-lock.yaml
through e.g:mkPnpmPackage
.Alternatives
I have packaged
pnpm-lock-export
for use in packaging the next version of Woodpecker's front-end in my personal configuration with the available tooling.Unfortunately that tools does not support the latest version of the lock file, so it was quickly made useless for my usage once upstream updated their repo...
The text was updated successfully, but these errors were encountered: