Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firedragon: init at 11.19.1 #351527

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ in {
ferretdb = handleTest ./ferretdb.nix {};
filesender = handleTest ./filesender.nix {};
filesystems-overlayfs = runTest ./filesystems-overlayfs.nix;
firedragon = handleTest ./firefox.nix { firefoxPackage = pkgs.firedragon; };
firefly-iii = handleTest ./firefly-iii.nix {};
firefly-iii-data-importer = handleTest ./firefly-iii-data-importer.nix {};
firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; };
Expand Down
75 changes: 75 additions & 0 deletions pkgs/applications/networking/browsers/firedragon/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
stdenv,
lib,
fetchFromGitLab,
buildMozillaMach,
nixosTests,
}:

(
(buildMozillaMach rec {
pname = "firedragon";
packageVersion = "11.19.1";
applicationName = "FireDragon";
binaryName = "firedragon";
branding = "browser/branding/official";
requireSigning = false;
allowAddonSideload = true;

# Must match the contents of `browser/config/version.txt` in the source tree
version = "128.4.0";

src = fetchFromGitLab {
owner = "garuda-linux";
repo = "firedragon";
fetchSubmodules = true;
rev = "v${packageVersion}";
hash = "";
};

extraConfigureFlags = [
"--with-app-name=${pname}"
"--with-app-basename=${applicationName}"
"--with-unsigned-addon-scopes=app,system"
"--enable-proxy-bypass-protection"
];

meta = {
description = "FireDragon is a browser based on the excellent Floorp browser";
homepage = "https://firedragon.garudalinux.org/";
maintainers = with lib.maintainers; [ liberodark ];
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 = "firedragon";
};
tests = {
inherit (nixosTests) firedragon;
};
}).override
{
# Upstream build configuration can be found at
# .github/workflows/src/linux/shared/mozconfig_linux_base
privacySupport = true;
webrtcSupport = true;
enableOfficialBranding = false;
googleAPISupport = true;
mlsAPISupport = true;
}
).overrideAttrs
(prev: {
MOZ_DATA_REPORTING = "";
MOZ_TELEMETRY_REPORTING = "";

# Upstream already includes some of the bugfix patches that are applied by
# `buildMozillaMach`. Pick out only the relevant ones for Floorp and override
# the list here.
patches = [
../firefox/env_var_for_system_dir-ff111.patch
../firefox/no-buildconfig-ffx121.patch
];
})
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29352,6 +29352,10 @@ with pkgs;

floorp = wrapFirefox floorp-unwrapped { };

firedragon-unwrapped = callPackage ../applications/networking/browsers/firedragon { };

firedragon = wrapFirefox firedragon-unwrapped { };

fomp = callPackage ../applications/audio/fomp { };

formatter = callPackage ../applications/misc/formatter { };
Expand Down
Loading