Skip to content

Build failure: karakeep #539235

Closed
Closed

Description

@mahmoud-moursy

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

@three


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

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. three commented on Jul 7, 2026

    @three
    Contributor

    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

  2. gepbird commented on Aug 13, 2026

    @gepbird
    Contributor

    Fixed by #548307

  3. haku commented on Oct 3, 2026

    @haku

    still broken in 26.05 because the auto backport failed: #548307 (comment)

  4. gepbird commented on Oct 4, 2026

    @gepbird
    Contributor

    Thanks for noticing @haku, it's being manually backported: #570007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions