Update Request: papra 26.4.0 → 26.5.0
Nixpkgs version
- Unstable (26.11)
Package name
papra
Upstream version
26.5.0
Nixpkgs version
26.4.0
Changelog
https://github.com/papra-hq/papra/releases/tag/%40papra%2Fapp%4026.5.0
Additional context
Needs manual intervention as the update script fails to build it after trying to update Papra automatically. Looks like the dev dependency node-addon-api of sharp required to build it offline is missing. Also, Papra updated to pnpm v11 and Nodejs 26.
Notify maintainers
@wariuccio @MiniHarinn
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- [x] I assert that this package update does not yet exist in an open pull request or in Nixpkgs Unstable.
- [x] I assert that this is not a duplicate of any known issue.
- [x] I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- [x] I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a :+1: reaction to issues you find important.
Hi, I spent some time looking into this but with limited success so far. I discovered that the issue with sharp/node-addon-api got introduced between 26.4.0 (version on nixpkgs) and 26.4.2. Broken diff here https://github.com/NixOS/nixpkgs/compare/master...wariuccio:nixpkgs:papra-26.4.2
That might allow us to address this issue separately from the pnpm upgrade to v11. I'm going to keep having a look but I am not very familiar with pnpm so any help is appreciated.
By the way @MiniHarinn any idea why https://github.com/NixOS/nixpkgs/pull/507696/changes#diff-bc9bb7ef22534ad63277945fab454f93390891f103e5ca8f6c98d6fd447e3786R96 didn't notify us of 26.4.1 and 26.4.2?
I will look into upgrading to pnpm11 while you're attempting to bump the package then. If you need some further help feel free to drop me a message or open your update attempt as a draft pr so we have somewhere to discuss :D
By the way @MiniHarinn any idea why https://github.com/NixOS/nixpkgs/pull/507696/changes#diff-bc9bb7ef22534ad63277945fab454f93390891f103e5ca8f6c98d6fd447e3786R96 didn't notify us of 26.4.1 and 26.4.2?
I guess something is broken when r-ryantm attempt to update our package at 26.4.1 and by the time 26.4.2 arrive its already broken with sharp/node-addon-api issue: https://nixpkgs-update-logs.nix-community.org/papra/2026-05-23.log
I created https://github.com/NixOS/nixpkgs/pull/531146 to show that with Papra 26.4.2 build fails with sharp 0.34.5 (the one committed in the repo) but works with version 0.32.5 (the previous one). I'd still like to find a proper solution but at least there is a little bit of progress
This commit https://github.com/lovell/sharp/commit/1bbee519aa33205cee9da8f0ad26b26b08a5a520 (in particular the changes described in install.md) seems relevant but I am not sure how to use that piece of information. Any idea?
I did find that zipline, which also dependence on sharp >0.34, simply uses
pnpm install --force --offline --frozen-lockfile
during its build phase. This also works for Papra's build phase but than the install phase fails with
papra> [ERR_PNPM_DEPLOY_NONINJECTED_WORKSPACE] By default, starting from pnpm v10, we only deploy from workspaces that have "inject-workspace-packages=true" set
papra>
papra> If you want to deploy without using injected dependencies, run "pnpm deploy" with the "--legacy" flag or set "force-legacy-deploy" to true
I tried setting inject-workspace-packages to true but this breaks the build phase again
papra> Running phase: buildPhase
papra> [WARN] using --force I sure hope you know what you are doing
papra> Scope: all 13 workspace projects
papra> [ERR_PNPM_LOCKFILE_CONFIG_MISMATCH] Cannot proceed with the frozen installation. The current "settings.injectWorkspacePackages" configuration doesn't match the value found in the lockfile
papra>
papra> Update your lockfile using "pnpm install --no-frozen-lockfile"
Adding --legacy --offline to pnpm deploy seems the most promising so far but the install phase fails currently with
papra> Running phase: installPhase
papra> [WARN] Shared workspace lockfile detected but configuration forces legacy deploy implementation.
papra> . | [WARN] A pnpm-lock.yaml file exists. The current configuration prohibits to read or write a lockfile
papra> Packages are cloned from the content-addressable store to the virtual store.
papra> Content-addressable store is at: /build/tmp.EhVycDchmi/v11
papra> Virtual store is at: ../../nix/store/fnsp111fiqyhbj466bqaa7qwfpcw3vrb-papra-26.5.0/lib/node_modules/.pnpm
papra> Progress: resolved 1, reused 0, downloaded 0, added 0
papra> /build/source/apps/papra-server:
papra> [ERR_PNPM_NO_OFFLINE_META] Failed to resolve @aws-sdk/lib-storage@>=3.835.0 <4.0.0-0 in package mirror /build/.home/.cache/pnpm/v11/metadata/registry.npmjs.org/@aws-sdk/lib-storage.jsonl
papra>
papra> This error happened while installing a direct dependency of /build/source/apps/papra-server
Or maybe copy from zipline again and replace pnpm deploy with custom logic?