Weird 'undefined variable' error of a defined variable

When I try to build with the new programs.firejail.wrappedPackages I get

building Nix...
building the system configuration...
error: undefined variable 'wrappedPkgs' at ~/src/nixpkgs/nixos/modules/programs/firejail.nix:67:42
(use '--show-trace' to show detailed location information)

even through said variable should be defined

wrappedPkgs was defined as an attribute of wrappedBins instead of as a let binding.

1 Like