Add floorp package

This commit is contained in:
Mikael 2024-12-18 11:19:45 +01:00
parent 6af89ce4e8
commit 94267479c8
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -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; }