Electron-unwrapped-28.2.10.drv failed with exit code 1

I am using unstable and since my last flake updates I always get this error

error: builder for '/nix/store/fbd4wbgknpgns5pcr6h5xnyrmagnqi2n-electron-unwrapped-28.2.10.drv' failed with exit code 1;
       last 10 log lines:
       > applying in src: enable_partition_alloc_ref_count_size.patch
       > applying in src: ensure_an_axcontext_before_painting.patch
       > applying in src: safely_crash_on_dangling_profile.patch
       > applying in src: prevent_mojotrap_event_re-ordering.patch
       > applying in src: m122_cherry_pick_cve-2024-25062_libxml_fix.patch
       > applying in src: allowlist_devtools_for_file_access_permission.patch
       > applying in src: update_crashpad_to_37afd37401253ebcebcf6e07ce15c8cfecb1a1cc.patch
       > applying in src: m122_webcodecs_disable_async_videoframe_readback_to_mitigate_a.patch
       > error: src/content/test/data/gpu/webcodecs/copyTo.html: No such file or directory
       > /nix/store/ym5fm2km11rn0fb6z6n6zd16fwi5p159-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/fbd4wbgknpgns5pcr6h5xnyrmagnqi2n-electron-unwrapped-28.2.10.drv'.
error: 1 dependencies of derivation '/nix/store/p0nsdrxfxz6lprhgb219wv8svwmxnb73-electron-28.2.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h3g7x3lqkiaxl62r388rbm0rm5brx0rz-bitwarden-desktop-2024.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nqbf9cln7ryhx7jbqngl2mi56kivnhqx-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3fpgd192bp083ndn4qg6j12svjj9yyr3-nixos-system-clawfinger-24.05.20240408.4cba8b5.drv' failed to build

In the logs I see this

error: src/content/test/data/gpu/webcodecs/copyTo.html: No such file or directory
/nix/store/ym5fm2km11rn0fb6z6n6zd16fwi5p159-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context

I assume the electron is installed/build due to some app which uses it… Not sure how to fix.

Detailed log: Electron-unwrapped-28.2.10.drv failed with exit code 1 · GitHub

This should have been (and indeed, for me, was) fixed in PR 302544 already.

Interesting, I juat did the update yesterday and today again, still no success

Could you show the output of nix flake metadata? From that, we could see which commit particular commit you are on.

I did a flake update now and all looks good. Many thanks

1 Like