about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/browsers/librewolf/default.nix
blob: 6a1d59858d80e3f7f0938e0aab330bbb260044d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, lib, callPackage, buildMozillaMach, nixosTests }:

let
  librewolf-src = callPackage ./librewolf.nix { };
in
(buildMozillaMach rec {
  pname = "librewolf";
  applicationName = "LibreWolf";
  binaryName = "librewolf";
  version = librewolf-src.packageVersion;
  src = librewolf-src.firefox;
  requireSigning = false;
  allowAddonSideload = true;
  branding = "browser/branding/librewolf";
  inherit (librewolf-src) extraConfigureFlags extraPatches extraPostPatch extraPassthru;

  meta = {
    description = "A fork of Firefox, focused on privacy, security and freedom";
    homepage = "https://librewolf.net/";
    maintainers = with lib.maintainers; [ dotlambda squalus ];
    platforms = lib.platforms.unix;
    badPlatforms = lib.platforms.darwin;
    broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory".
                                           # not in `badPlatforms` because cross-compilation on 64-bit machine might work.
    maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
    license = lib.licenses.mpl20;
    mainProgram = "librewolf";
  };
  tests = [ nixosTests.librewolf ];
  updateScript = callPackage ./update.nix {
    attrPath = "librewolf-unwrapped";
  };
}).override {
  crashreporterSupport = false;
  enableOfficialBranding = false;
}