Can't build zen-browser anymore, error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "ffmpeg_9"

I’v also posted this issue on Can't build niri anymore, error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "ffmpeg_9" · Issue #1855 · sodiboo/niri-flake · GitHub, but I’m not sure if it is a niri specific issue. Because when I remove niri from my config I get the same ffmpeg_9 issue with zen-browser.

UPDATE: the error seems to be caused by the zen-browser flake.

After a nix flake update I get this error:

error:
       … while evaluating attribute 'nodes'
         at «string»:4:25:
            3|                       (deploy // {
            4|                         nodes = {
             |                         ^
            5|                           inherit (deploy.nodes) "laptop-munnik";

       … while evaluating attribute 'laptop-munnik'
         at «string»:5:50:
            4|                         nodes = {
            5|                           inherit (deploy.nodes) "laptop-munnik";
             |                                                  ^
            6|                         };

       … while evaluating the option `home.file."/home/munnik/.config/niri-config".enable':

       … while evaluating definitions from `/nix/store/2ans5qaidz3zysv21ydq25jz1pic7nf3-source/modules/misc/xdg.nix':

       … while evaluating the option `xdg.configFile.niri-config.enable':

       … while evaluating definitions from `/nix/store/y42704czdqh1wlwrvwmi5afd5w4dmvs2-source/home/common/programs/niri':

       … while evaluating the option `programs.niri.finalConfig':

       … while evaluating the option `programs.niri.config."[definition 1-entry 8]".children."[definition 1-entry 10]".children."[definition 1-entry 1]".arguments':

       … while evaluating definitions from `/nix/store/y42704czdqh1wlwrvwmi5afd5w4dmvs2-source/home/common/programs/niri':

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

       error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "ffmpeg_9" at /nix/store/fjf4liydkv9vdfbmsa9724ig5hbjjwwf-source/package.nix:13, did you mean "ffmpeg_4", "ffmpeg_6" or "ffmpeg_7"?'

Didn’t change anything (relevant) in the config of my system. The inputs section of my flake.nix looks like this:

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";

    systems.url = "github:nix-systems/default-linux";

    disko.url = "github:nix-community/disko";
    disko.inputs.nixpkgs.follows = "nixpkgs";

    deploy-rs.url = "github:serokell/deploy-rs";
    deploy-rs.inputs.nixpkgs.follows = "nixpkgs";

    sops-nix.url = "github:Mic92/sops-nix";
    sops-nix.inputs.nixpkgs.follows = "nixpkgs";

    home-manager.url = "github:nix-community/home-manager/release-26.05";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";

    nixos-facter-modules.url = "github:numtide/nixos-facter-modules";

    programsdb.url = "github:wamserma/flake-programs-sqlite";
    programsdb.inputs.nixpkgs.follows = "nixpkgs";

    srvos.url = "github:nix-community/srvos";
    srvos.inputs.nixpkgs.follows = "nixpkgs";

    catppuccin.url = "github:catppuccin/nix/release-26.05";
    catppuccin.inputs.nixpkgs.follows = "nixpkgs";

    comin.url = "github:nlewo/comin";
    comin.inputs.nixpkgs.follows = "nixpkgs";

    nix-net-lib.url = "github:0xCCF4/nix-net-lib";

    nixos-hardware.url = "github:NixOS/nixos-hardware/master";

    nur.url = "github:nix-community/NUR";
    nur.inputs.nixpkgs.follows = "nixpkgs";

    stylix.url = "github:nix-community/stylix/release-26.05";
    stylix.inputs.nixpkgs.follows = "nixpkgs";

    niri.url = "github:sodiboo/niri-flake";
    niri.inputs.nixpkgs.follows = "nixpkgs";

    niri-session-manager.url = "github:MTeaHead/niri-session-manager";
    niri-session-manager.inputs.nixpkgs.follows = "nixpkgs";

    noctalia.url = "github:noctalia-dev/noctalia";
    noctalia.inputs.nixpkgs.follows = "nixpkgs";

    noctalia-greeter.url = "github:noctalia-dev/noctalia-greeter";
    noctalia-greeter.inputs.nixpkgs.follows = "nixpkgs";

    stasis.url = "github:saltnpepper97/stasis";
    stasis.inputs.nixpkgs.follows = "nixpkgs";

    wayland-displays.url = "github:heyzec/wayland-displays";
    wayland-displays.inputs.nixpkgs.follows = "nixpkgs";

    nix-index-database.url = "github:nix-community/nix-index-database";
    nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

    zen-browser.url = "github:0xc000022070/zen-browser-flake";
    zen-browser.inputs.nixpkgs.follows = "nixpkgs";
    zen-browser.inputs.home-manager.follows = "home-manager";
  };

Did you check what that file is?

Thanks,

It is a file from zen-browser, so the issue is not with Niri! Thanks for the help. I will ask the zen-browser issue tracker.

It is this file:

You’re overriding the nixpkgs input to follow stable nixpkgs; the flake assumes unstable nixpkgs. Either remove the follow or use nixpkgs-unstable.

2 Likes

Thanks, that solved the issue!

1 Like