Skip to content

Commit

Permalink
Merge pull request #336155 from LeSuisse/floorp-forgotten-backports
Browse files Browse the repository at this point in the history
[24.05] floorp: 11.13.2 -> 11.16.0
  • Loading branch information
marcusramberg committed Aug 22, 2024
2 parents 1e7f24a + 4be97a3 commit 54b719d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions pkgs/applications/networking/browsers/floorp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,27 @@
, fetchFromGitHub
, buildMozillaMach
, nixosTests
, python311
}:

((buildMozillaMach rec {
pname = "floorp";
packageVersion = "11.13.2";
packageVersion = "11.16.0";
applicationName = "Floorp";
binaryName = "floorp";
branding = "browser/branding/official";
requireSigning = false;
allowAddonSideload = true;

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

src = fetchFromGitHub {
owner = "Floorp-Projects";
repo = "Floorp";
fetchSubmodules = true;
rev = "v${packageVersion}";
hash = "sha256-sFtGtxk3vdR5JoZb1yiITybIfGmOYzKLb9NtbhWjBt8=";
hash = "sha256-bmB88EIc5S/EYZXiQ5Dc+LjcGB4dlwKRBBV0T0ln88E=";
};

extraConfigureFlags = [
Expand All @@ -31,6 +32,15 @@
"--with-unsigned-addon-scopes=app,system"
];

extraPostPatch = ''
# Fix .desktop files for PWAs generated by Floorp
# The executable path returned by Services.dirsvc.get() is absolute and
# thus is the full /nix/store/[..] path. To avoid breaking PWAs with each
# update, rely on `floorp` being in $PATH, as before.
substituteInPlace floorp/browser/base/content/modules/ssb/LinuxSupport.mjs \
--replace-fail 'Services.dirsvc.get("XREExeF",Ci.nsIFile).path' '"floorp"'
'';

updateScript = ./update.sh;

meta = {
Expand All @@ -54,6 +64,7 @@
enableOfficialBranding = false;
googleAPISupport = true;
mlsAPISupport = true;
python3 = python311;
}).overrideAttrs (prev: {
MOZ_DATA_REPORTING = "";
MOZ_TELEMETRY_REPORTING = "";
Expand Down

0 comments on commit 54b719d

Please sign in to comment.