Repository navigation
Closed as duplicate
Labels
0.kind: build failureA package fails to build
Description
Nixpkgs version
- Unstable (26.11)
Steps to reproduce
Build: session-desktop.
Can Hydra reproduce this build failure?
Hydra doesn’t try to build the package.
Link to Hydra build job
No response
Relevant log output
~ nix-shell -p session-desktop
this derivation will be built:
/nix/store/0nqsrlmwdd18rdz8my0kc7gdf1hl63ml-session-desktop-1.18.0.drv
building '/nix/store/0nqsrlmwdd18rdz8my0kc7gdf1hl63ml-session-desktop-1.18.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/xfvjgj3vdh98zvv9cgc8ki9a48nnjpy5-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Executing pnpmConfigHook
~ /build/source
/build/source
Found 'pnpm' with version '10.34.5'
Using fetcherVersion: 3
Configuring pnpm store
Installing dependencies
Final pnpm config:
@jsr:registry=https://npm.jsr.io/
arch=x64
globalconfig=/build/.home/.config/pnpm/rc
manage-package-manager-versions=false
nodedir=/nix/store/x5xvswmnf6x9w38r2pl76zk2675cw8dv-electron-unwrapped-41.9.1-headers
npm-globalconfig=/nix/store/p8hbhn8hdqz5p3a7y6dvi1y1x8nriybl-nodejs-slim-24.18.0/etc/npmrc
only-built-dependencies[]=@parcel/watcher
only-built-dependencies[]=@signalapp/sqlcipher
only-built-dependencies[]=electron
only-built-dependencies[]=electron-winstaller
only-built-dependencies[]=libsession_util_nodejs
only-built-dependencies[]=protobufjs
only-built-dependencies[]=sharp
package-import-method=clone-or-copy
platform=linux
public-hoist-pattern[]=@img/*
registry=https://registry.npmjs.org/
store-dir=/build/tmp.UAXNXX1xXF
user-agent=pnpm/10.34.5 npm/? node/v24.18.0 linux x64
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 1254, reused 253, downloaded 0, added 0
Progress: resolved 1254, reused 1138, downloaded 0, added 0
Progress: resolved 1254, reused 1253, downloaded 0, added 0
ERR_PNPM_MISSING_TARBALL_INTEGRITY Cannot install package "@emoji-mart/data@https://github.com/session-foundation/session-emoji-mart/releases/download/v5.6.0/emoji-mart-data-v1.2.1.tgz": its lockfile entry has no "integrity" field, so pnpm cannot verify the downloaded tarball.
The lockfile may be corrupted or have been tampered with. Restore it from a trusted source, or delete it and re-run installation without --frozen-lockfile to regenerate.
Progress: resolved 1254, reused 1253, downloaded 0, added 0
ERROR: pnpm failed to install dependencies
If you see ERR_PNPM_NO_OFFLINE_TARBALL above this, follow these to fix the issue:
1. Set pnpmDeps.hash to "" (empty string)
2. Build the derivation and wait for it to fail with a hash mismatch
3. Copy the 'got: sha256-' value back into the pnpmDeps.hash field
If you see ERR_PNPM_LOCKFILE_CONFIG_MISMATCH above this, try changing the pnpm version
Found 'pnpm' with version '10.34.5'
error: Cannot build '/nix/store/0nqsrlmwdd18rdz8my0kc7gdf1hl63ml-session-desktop-1.18.0.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/c8j4620rn35xlcbnbnbwsw23hvmm1pyh-session-desktop-1.18.0
Last 25 log lines:
> public-hoist-pattern[]=@img/*
> registry=https://registry.npmjs.org/
> store-dir=/build/tmp.UAXNXX1xXF
> user-agent=pnpm/10.34.5 npm/? node/v24.18.0 linux x64
>
> Lockfile is up to date, resolution step is skipped
> Progress: resolved 1, reused 0, downloaded 0, added 0
> Progress: resolved 1254, reused 253, downloaded 0, added 0
> Progress: resolved 1254, reused 1138, downloaded 0, added 0
> Progress: resolved 1254, reused 1253, downloaded 0, added 0
> ERR_PNPM_MISSING_TARBALL_INTEGRITY Cannot install package "@emoji-mart/data@https://github.com/session-foundation/session-emoji-mart/releases/download/v5.6.0/emoji-mart-data-v1.2.1.tgz": its lockfile entry has no "integrity" field, so pnpm cannot verify the downloaded tarball.
>
> The lockfile may be corrupted or have been tampered with. Restore it from a trusted source, or delete it and re-run installation without --frozen-lockfile to regenerate.
> Progress: resolved 1254, reused 1253, downloaded 0, added 0
>
> ERROR: pnpm failed to install dependencies
>
> If you see ERR_PNPM_NO_OFFLINE_TARBALL above this, follow these to fix the issue:
> 1. Set pnpmDeps.hash to "" (empty string)
> 2. Build the derivation and wait for it to fail with a hash mismatch
> 3. Copy the 'got: sha256-' value back into the pnpmDeps.hash field
>
> If you see ERR_PNPM_LOCKFILE_CONFIG_MISMATCH above this, try changing the pnpm version
> Found 'pnpm' with version '10.34.5'
>
For full logs, run:
nix log /nix/store/0nqsrlmwdd18rdz8my0kc7gdf1hl63ml-session-desktop-1.18.0.drvAdditional context
Given the error, the most likely explanation is:
Session Desktop 1.18.0 ships a lockfile generated by an older pnpm.
My current nixpkgs builds it with pnpm 10.34.5.
pnpm 10 enforces integrity for tarball dependencies under --frozen-lockfile, causing the build to fail.
System metadata
nix-shell -p nix-info --run "nix-info -m"
- system:
"x86_64-linux" - host os:
Linux 7.1.3, NixOS, 26.11 (Zokor), 26.11.20260723.e2587ca - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.8 - channels(root):
"home-manager, nix-snapd, nixos, nur" - nixpkgs:
/nix/store/llgwlxshmy0ifvxh7f8wq53vk5x7vd13-source
Notify maintainers
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
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- 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 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity