Repository navigation
Closed
Labels
0.kind: build failureA package fails to build
Description
Nixpkgs version
- Unstable (26.11)
Steps to reproduce
Simply run nix shell nixpkgs#karakeep.
PNPM_9 has been marked insecure by Nixpkgs, so while the package can technically still build with a config override, by default it will throw an error to warn users to upgrade.
Can Hydra reproduce this build failure?
No, Hydra cannot reproduce this build failure.
Link to Hydra build job
No response
Relevant log output
warning: updating lock file "/etc/nixos/flake.lock":
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/d407951447dcd00442e97087bf374aad70c04cea?narHash=sha256-8i/87eeoqiGE4yOTjwSA3Eh/ziJRQEmd/unYU%2BK27sk%3D' (2026-07-05)
→ 'github:NixOS/nixpkgs/14e66282574d06cc953bbeeb4f488da3963cd695?narHash=sha256-VpwD/RYSBPVvRtL918K9Z%2BHLEAkmGoQqbZwg5F%2Bc37M%3D' (2026-07-07)
building the system configuration...
error:
… while calling the 'head' builtin
at «github:NixOS/nixpkgs/14e66282574d06cc953bbeeb4f488da3963cd695?narHash=sha256-VpwD/RYSBPVvRtL918K9Z%2BHLEAkmGoQqbZwg5F%2Bc37M%3D»/lib/attrsets.nix:1719:13:
1718| if length values == 1 || pred here (elemAt values 1) (head values) then
1719| head values
| ^
1720| else
… while evaluating the attribute 'value'
at «github:NixOS/nixpkgs/14e66282574d06cc953bbeeb4f488da3963cd695?narHash=sha256-VpwD/RYSBPVvRtL918K9Z%2BHLEAkmGoQqbZwg5F%2Bc37M%3D»/lib/modules.nix:1149:7:
1148| // {
1149| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1150| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/xs87ypxg43gc2bs945swqrhiapz3ai9n-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `warnings':
… while evaluating definitions from `/nix/store/xs87ypxg43gc2bs945swqrhiapz3ai9n-source/nixos/modules/system/boot/systemd.nix':
… while evaluating the option `systemd.services.karakeep-init.serviceConfig':
… while evaluating definitions from `/nix/store/xs87ypxg43gc2bs945swqrhiapz3ai9n-source/nixos/modules/system/boot/systemd.nix':
… while evaluating the option `systemd.services.karakeep-init.script':
… while evaluating definitions from `/nix/store/xs87ypxg43gc2bs945swqrhiapz3ai9n-source/nixos/modules/services/web-apps/karakeep.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: Refusing to evaluate package 'pnpm-9.15.9' in /nix/store/xs87ypxg43gc2bs945swqrhiapz3ai9n-source/pkgs/development/tools/pnpm/generic.nix:164 because it is marked as insecure
Known issues:
- CVE-2026-48995
- CVE-2026-50014
- CVE-2026-50015
- CVE-2026-50016
- CVE-2026-50017
- CVE-2026-50573
- CVE-2026-55699
You can install it anyway by allowing this package, using the
following methods:
a) To temporarily allow all insecure packages, you can use an environment
variable for a single invocation of the nix tools:
Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
then pass `--impure` in order to allow use of environment variables.
b) for `nixos-rebuild` you can add ‘pnpm-9.15.9’ to
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
like so:
{
nixpkgs.config.permittedInsecurePackages = [
"pnpm-9.15.9"
];
}
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
‘pnpm-9.15.9’ to `permittedInsecurePackages` in
~/.config/nixpkgs/config.nix, like so:
{
permittedInsecurePackages = [
"pnpm-9.15.9"
];
}
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths 'path:/etc/nixos#nixosConfigurations."moursy-alienware".config.system.build.toplevel' --no-link' returned non-zero exit status 1.Additional context
The package builds fine, it’s just that it uses an outdated and marked-insecure pnpm version.
This build failure is related to #529285 — it looks like the tracking issue contains some examples in the linked PRs, but I don’t know how to test a Nix package myself which is why I didn’t make a PR on my own 💔
Thank you!
System metadata
- system:
"x86_64-linux" - host os:
Linux 7.0.14-xanmod1, NixOS, 26.11 (Zokor), 26.11.20260629.b5aa0fb - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.7 - channels(root):
"" - nixpkgs:
/nix/store/w8w3fia26p35xays42lixahnzigsl8dv-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.
Reacted by Dane Lipscombe, Fae, SebastianStork, Mythicsoul, Zeal, Kiran Ostrolenk, Cody W Tucker and Jdogzz
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity
three commentedon Jul 7, 2026
I have a branch with the pnpm upgrade (still testing, no promises it works). Karakeep's main branch is on pnpm 11 but the official release is still on pnpm 9. Once they release I can work on a PR to upgrade.
master...three:nixpkgs:karakeep-save-space
raj-magesh commentedon Aug 9, 2026
There's been a new release, FYI.
https://github.com/karakeep-app/karakeep/releases#release-v0.33.1
gepbird commentedon Aug 13, 2026
Fixed by #548307
haku commentedon Oct 3, 2026
still broken in 26.05 because the auto backport failed: #548307 (comment)
gepbird commentedon Oct 4, 2026
Thanks for noticing @haku, it's being manually backported: #570007