Add thunderbird package
This commit is contained in:
parent
eb93c34f85
commit
fa351f63e6
1 changed files with 31 additions and 7 deletions
38
flake.nix
38
flake.nix
|
@ -17,19 +17,20 @@
|
||||||
packages = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
|
packages = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system}.pkgsMusl;
|
pkgs = nixpkgs.legacyPackages.${system}.pkgsMusl;
|
||||||
mimalloc = pkgs.mimalloc.override { secureBuild = true; };
|
mimalloc = pkgs.mimalloc.override { secureBuild = true; };
|
||||||
in {
|
extraWrapper = prevAttrs: {
|
||||||
default = self.packages.${system}.firefox;
|
|
||||||
firefox = (pkgs.wrapFirefox self.packages.${system}.firefox-unwrapped {
|
|
||||||
extraPoliciesFiles = [ ./policy.nix ];
|
|
||||||
}).overrideAttrs (prevAttrs: {
|
|
||||||
buildCommand = prevAttrs.buildCommand + ''
|
buildCommand = prevAttrs.buildCommand + ''
|
||||||
sed -i \
|
sed -i \
|
||||||
-e '$i export MIMALLOC_PURGE_DELAY=150' \
|
-e '$i export MIMALLOC_PURGE_DELAY=150' \
|
||||||
-e '$i export MIMALLOC_PURGE_DECOMMITS=0' \
|
-e '$i export MIMALLOC_PURGE_DECOMMITS=0' \
|
||||||
-e '$i export MIMALLOC_RESERVE_HUGE_OS_PAGES=2' \
|
-e '$i export MIMALLOC_RESERVE_HUGE_OS_PAGES=2' \
|
||||||
"$out/bin/firefox"
|
"$out/bin/${prevAttrs.meta.mainProgram}"
|
||||||
'';
|
'';
|
||||||
});
|
};
|
||||||
|
in {
|
||||||
|
default = self.packages.${system}.firefox;
|
||||||
|
firefox = (pkgs.wrapFirefox self.packages.${system}.firefox-unwrapped {
|
||||||
|
extraPoliciesFiles = [ ./policy.nix ];
|
||||||
|
}).overrideAttrs extraWrapper;
|
||||||
|
|
||||||
firefox-unwrapped = ((pkgs.buildMozillaMach {
|
firefox-unwrapped = ((pkgs.buildMozillaMach {
|
||||||
pname = "firefox";
|
pname = "firefox";
|
||||||
|
@ -62,6 +63,29 @@
|
||||||
crashreporterSupport = false;
|
crashreporterSupport = false;
|
||||||
googleAPISupport = false;
|
googleAPISupport = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
thunderbird = (pkgs.wrapThunderbird self.packages.${system}.thunderbird-unwrapped { }).overrideAttrs extraWrapper;
|
||||||
|
|
||||||
|
thunderbird-unwrapped = (pkgs.thunderbird-latest-unwrapped.overrideAttrs (prevAttrs: {
|
||||||
|
configureFlags = prevAttrs.configureFlags or [ ] ++ [
|
||||||
|
"--enable-default-toolkit=cairo-gtk3-wayland-only"
|
||||||
|
];
|
||||||
|
})).override {
|
||||||
|
alsaSupport = false;
|
||||||
|
ffmpegSupport = false;
|
||||||
|
gssSupport = false;
|
||||||
|
jackSupport = false;
|
||||||
|
jemallocSupport = false;
|
||||||
|
ltoSupport = true;
|
||||||
|
pgoSupport = true;
|
||||||
|
pipewireSupport = false;
|
||||||
|
pulseaudioSupport = false;
|
||||||
|
sndioSupport = false;
|
||||||
|
waylandSupport = true;
|
||||||
|
|
||||||
|
privacySupport = true;
|
||||||
|
drmSupport = false;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
hydraJobs = self.packages |> lib.foldlAttrs (jobs: system: packages: lib.recursiveUpdate jobs
|
hydraJobs = self.packages |> lib.foldlAttrs (jobs: system: packages: lib.recursiveUpdate jobs
|
||||||
|
|
Loading…
Reference in a new issue