floorp-bin: fix usage as programs.firefox.package

Fixes #442254 [0].

Apparently, there is a big difference whether we `wrapFirefox` the
package inside top-level/all-packages.nix or by-name/.

With the latter, using something like

  programs.firefox = {
    enable = true;
    package = pkgs.floorp-bin;
  };

breaks with

  error: function 'anonymous lambda' called with unexpected arguments 'cfg', 'nativeMessagingHosts' and 'extraPrefsFiles'
  at <nixpkgs>/pkgs/by-name/fl/floorp-bin/package.nix:1:1:
      1| {
       | ^
      2|   wrapFirefox,

[0] https://github.com/NixOS/nixpkgs/issues/442254

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss
2025-09-13 22:36:51 +02:00
parent 34357f203a
commit b541b4ba16
2 changed files with 4 additions and 8 deletions
-8
View File
@@ -1,8 +0,0 @@
{
wrapFirefox,
floorp-bin-unwrapped,
}:
wrapFirefox floorp-bin-unwrapped {
pname = "floorp-bin";
}
+4
View File
@@ -11630,6 +11630,10 @@ with pkgs;
];
};
floorp-bin = wrapFirefox floorp-bin-unwrapped {
pname = "floorp-bin";
};
formiko =
with python3Packages;
callPackage ../applications/editors/formiko {