From 94267479c8dc641c5309fd76cd9fc841c37a81c4 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 18 Dec 2024 11:19:45 +0100 Subject: [PATCH] Add floorp package --- flake.nix | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c3d073f..3870204 100644 --- a/flake.nix +++ b/flake.nix @@ -59,7 +59,37 @@ }; in { - default = self.packages.${system}.firefox; + default = self.packages.${system}.floorp; + floorp = (pkgs.wrapFirefox self.packages.${system}.floorp-unwrapped { + extraPoliciesFiles = + import ./policy.nix { inherit lib; firefox = true; } + |> pkgs.writers.writeJSON "policy.json" + |> lib.singleton; + }).overrideAttrs extraWrapper; + + floorp-unwrapped = (pkgs.floorp-unwrapped.overrideAttrs (prevAttrs: { + configureFlags = prevAttrs.configureFlags or [ ] + ++ [ "--enable-default-toolkit=cairo-gtk3-wayland-only" ]; + + meta = prevAttrs.meta // { + timeout = 48 * 3600; + }; + })).override { + #alsaSupport = false; + ffmpegSupport = true; + gssSupport = false; + jackSupport = false; + jemallocSupport = false; + ltoSupport = true; + pgoSupport = true; + pipewireSupport = true; + pulseaudioSupport = true; + sndioSupport = false; + waylandSupport = true; + + inherit (self.packages.${system}) xvfb-run; + }; + firefox = (pkgs.wrapFirefox self.packages.${system}.firefox-unwrapped { extraPoliciesFiles = import ./policy.nix { inherit lib; firefox = true; }