NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.4k stars 14.35k forks source link

Build failure: cantata #348972

Open Andy3153 opened 1 month ago

Andy3153 commented 1 month ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build cantata

Build log

https://pastebin.com/sgeQQhSC

Additional context

Add any other context about the problem here.

Notify maintainers

@peterhoeg

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.9-zen1, NixOS, 24.11 (Vicuna), 24.11.20241009.5633bcf`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - nixpkgs: `/nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source`

Add a :+1: reaction to issues you find important.

jackwilsdon commented 1 month ago

Looks like this is because cantata can't build against ffmpeg 7. A short-term fix would be to just use ffmpeg 6 in the derivation, but we should really switch to a fork of cantata which supports newer versions of ffmpeg (as the original has been archived): #315695

I'll open a PR shortly to switch it to v6.

imoBooze commented 1 month ago

Is there a way to override the current package to build against ffmpeg 6?

Update: The package builds successfully after overriding with:

environment.systemPackages = with pkgs; [ 
  (cantata.override {
    ffmpeg = ffmpeg_6-headless; 
  })
];