Skip to content

code-cursor: aarch64-linux build dependency on ffmpeg fails #397277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
jmettes opened this issue Apr 9, 2025 · 3 comments · Fixed by #398013
Closed
3 tasks done

code-cursor: aarch64-linux build dependency on ffmpeg fails #397277

jmettes opened this issue Apr 9, 2025 · 3 comments · Fixed by #398013
Labels
0.kind: build failure A package fails to build 2.status: blocked by pr/issue Another PR or issue is preventing this from being completed

Comments

@jmettes
Copy link
Contributor

jmettes commented Apr 9, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

On aarch64-linux NixOS, installing code-cursor from unstable channel fails. It looks like it's trying to pull in
https://github.com/NixOS/nixpkgs/blob/4f0dadbf38ee4cf4cc38cbc232b7708fddf965bc/pkgs/applications/networking/browsers/vivaldi/ffmpeg-codecs.nix

But it looks like that's for x86_64-linux platform only.

Steps to reproduce

$ sudo nixos-rebuild switch
building Nix...
building the system configuration...
error:
       … while calling the 'head' builtin
         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1:35876:
       … while evaluating the attribute 'value'
         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:37175:
       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':

       … while evaluating the option `environment.etc.dbus-1.source':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Package ‘chromium-codecs-ffmpeg-extra-115541’ in /nix/store/gv749bbggig1nd1hlp62x75jxsxqp2s5-nixos/nixos/pkgs/applications/networking/browsers/vivaldi/ffmpeg-codecs.nix:30 is not available on the requested hostPlatform:
         hostPlatform.config = "aarch64-unknown-linux-gnu"
         package.meta.platforms = [
           "x86_64-linux"
         ]
         package.meta.badPlatforms = [ ]
       , refusing to evaluate.

       a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1

          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 set
         { nixpkgs.config.allowUnsupportedSystem = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnsupportedSystem = true; }
       to ~/.config/nixpkgs/config.nix.

Expected behaviour

Expected to install, based on platform tag availability

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-linux"`
 - host os: `Linux 6.12.21, NixOS, 25.05 (Warbler), 25.05pre780010.063dece00c5a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.13`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-unstable

Notify maintainers

@sarahec


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.

@jmettes jmettes added the 0.kind: bug Something is broken label Apr 9, 2025
@sarahec
Copy link
Contributor

sarahec commented Apr 9, 2025

Looks like the vivaldi-ffmpeg-codecs derivation hasn't been updated recently. (latest changes: 10 months, 2 years).

These codecs are available for arm64. It should be a matter of adding and selecting the proper sources to make this work again. This would solve your problem.

@sarahec
Copy link
Contributor

sarahec commented Apr 9, 2025

Blocked by #304751

@sarahec
Copy link
Contributor

sarahec commented Apr 13, 2025

@jmettes that should fix things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 2.status: blocked by pr/issue Another PR or issue is preventing this from being completed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants