firefox-bin: enable for darwin
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
systemLocale ? config.i18n.defaultLocale or "en_US",
|
||||
patchelfUnstable, # have to use patchelfUnstable to support --no-clobber-old-sections
|
||||
applicationName ? "Firefox",
|
||||
undmg,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -39,6 +40,9 @@ let
|
||||
i686-linux = "linux-i686";
|
||||
x86_64-linux = "linux-x86_64";
|
||||
aarch64-linux = "linux-aarch64";
|
||||
# bundles are universal and can be re-used for both darwin architectures
|
||||
aarch64-darwin = "mac";
|
||||
x86_64-darwin = "mac";
|
||||
};
|
||||
|
||||
arch = mozillaPlatforms.${stdenv.hostPlatform.system};
|
||||
@@ -71,40 +75,58 @@ stdenv.mkDerivation {
|
||||
|
||||
src = fetchurl { inherit (source) url sha256; };
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook3
|
||||
autoPatchelfHook
|
||||
patchelfUnstable
|
||||
];
|
||||
buildInputs = [
|
||||
sourceRoot = lib.optional stdenv.hostPlatform.isDarwin ".";
|
||||
|
||||
nativeBuildInputs =
|
||||
[
|
||||
wrapGAppsHook3
|
||||
]
|
||||
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
autoPatchelfHook
|
||||
patchelfUnstable
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
undmg
|
||||
];
|
||||
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
gtk3
|
||||
adwaita-icon-theme
|
||||
alsa-lib
|
||||
dbus-glib
|
||||
libXtst
|
||||
];
|
||||
runtimeDependencies = [
|
||||
curl
|
||||
libva.out
|
||||
pciutils
|
||||
];
|
||||
appendRunpaths = [
|
||||
runtimeDependencies =
|
||||
[
|
||||
curl
|
||||
pciutils
|
||||
]
|
||||
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
libva.out
|
||||
];
|
||||
appendRunpaths = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
"${pipewire}/lib"
|
||||
];
|
||||
# Firefox uses "relrhack" to manually process relocations from a fixed offset
|
||||
patchelfFlags = [ "--no-clobber-old-sections" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$prefix/lib/firefox-bin-${version}"
|
||||
cp -r * "$prefix/lib/firefox-bin-${version}"
|
||||
installPhase =
|
||||
if stdenv.hostPlatform.isDarwin then
|
||||
''
|
||||
mkdir -p $out/Applications
|
||||
mv Firefox.app $out/Applications
|
||||
''
|
||||
else
|
||||
''
|
||||
mkdir -p "$prefix/lib/firefox-bin-${version}"
|
||||
cp -r * "$prefix/lib/firefox-bin-${version}"
|
||||
|
||||
mkdir -p "$out/bin"
|
||||
ln -s "$prefix/lib/firefox-bin-${version}/firefox" "$out/bin/${binaryName}"
|
||||
mkdir -p "$out/bin"
|
||||
ln -s "$prefix/lib/firefox-bin-${version}/firefox" "$out/bin/${binaryName}"
|
||||
|
||||
# See: https://github.com/mozilla/policy-templates/blob/master/README.md
|
||||
mkdir -p "$out/lib/firefox-bin-${version}/distribution";
|
||||
ln -s ${policiesJson} "$out/lib/firefox-bin-${version}/distribution/policies.json";
|
||||
'';
|
||||
# See: https://github.com/mozilla/policy-templates/blob/master/README.md
|
||||
mkdir -p "$out/lib/firefox-bin-${version}/distribution";
|
||||
ln -s ${policiesJson} "$out/lib/firefox-bin-${version}/distribution/policies.json";
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit applicationName binaryName;
|
||||
|
||||
@@ -1855,5 +1855,623 @@
|
||||
arch = "linux-aarch64";
|
||||
sha256 = "73371b02754ff6225db3298485a1b1fa97c8a5746dbd7ae037dff7be87364631";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ach/Firefox%20137.0.2.dmg";
|
||||
locale = "ach";
|
||||
arch = "mac";
|
||||
sha256 = "fda3bb501df25b3ab58d240453988cc03c97c9cfdf3d24c01a0a79af30bda289";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/af/Firefox%20137.0.2.dmg";
|
||||
locale = "af";
|
||||
arch = "mac";
|
||||
sha256 = "69cccf0e2e3660f1980c9a93ec97911814bb1626ada5423b6c9039dd606f9791";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/an/Firefox%20137.0.2.dmg";
|
||||
locale = "an";
|
||||
arch = "mac";
|
||||
sha256 = "95a93a51f7f05af14398f6853cc3016ac3ca3302c1c0b12a97ba6a8ca862f01a";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ar/Firefox%20137.0.2.dmg";
|
||||
locale = "ar";
|
||||
arch = "mac";
|
||||
sha256 = "ad71602dfe66ccd514e4362e7741744d5f6f4ebfe15eda282d18762301f522aa";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ast/Firefox%20137.0.2.dmg";
|
||||
locale = "ast";
|
||||
arch = "mac";
|
||||
sha256 = "522dd61d774926a5849b9edb4dbe1a3fb98bac85cb088b735653a8e4ae513fa7";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/az/Firefox%20137.0.2.dmg";
|
||||
locale = "az";
|
||||
arch = "mac";
|
||||
sha256 = "4f104a35b58b300099c0afa851427eeefad47831f9f977bab61d696e1ab94b2e";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/be/Firefox%20137.0.2.dmg";
|
||||
locale = "be";
|
||||
arch = "mac";
|
||||
sha256 = "917c339bf3809ce7d0a66b637f570e69237285347841a98273fc626a88cc4f19";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/bg/Firefox%20137.0.2.dmg";
|
||||
locale = "bg";
|
||||
arch = "mac";
|
||||
sha256 = "f22fff746d5b9ed007a0a6e64fee554ace373bf3ef7d48682ebb6ef52bba78a1";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/bn/Firefox%20137.0.2.dmg";
|
||||
locale = "bn";
|
||||
arch = "mac";
|
||||
sha256 = "9a7837fe82b87febea5b9cb49403d8a0fa847faba8442c54a19462bfca0fc338";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/br/Firefox%20137.0.2.dmg";
|
||||
locale = "br";
|
||||
arch = "mac";
|
||||
sha256 = "3d8458ab98ce78832cece3740d2130d6443898015ecfb69477ddd86c192583a9";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/bs/Firefox%20137.0.2.dmg";
|
||||
locale = "bs";
|
||||
arch = "mac";
|
||||
sha256 = "e221ec27ca8f6fde9bb00ea7a21f34362dd22d5d76355e87f0ccae62fc577b94";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ca-valencia/Firefox%20137.0.2.dmg";
|
||||
locale = "ca-valencia";
|
||||
arch = "mac";
|
||||
sha256 = "edfd85f6d83faa1a11b2cce6a54d2eba380b39e1c628b77c440fb56ff595f7ca";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ca/Firefox%20137.0.2.dmg";
|
||||
locale = "ca";
|
||||
arch = "mac";
|
||||
sha256 = "1940dff3230f0dd136f63c38838dd9618f58f2564d15bc0333802848377e123a";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/cak/Firefox%20137.0.2.dmg";
|
||||
locale = "cak";
|
||||
arch = "mac";
|
||||
sha256 = "21c3d68b4d44c1d7e028f5b59cdca782f27587cbd6b243e3ece684d65e95914f";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/cs/Firefox%20137.0.2.dmg";
|
||||
locale = "cs";
|
||||
arch = "mac";
|
||||
sha256 = "012142fd4d86b1c9f0281ad10d389962ba87d770f255badc5b3d358efa8fa490";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/cy/Firefox%20137.0.2.dmg";
|
||||
locale = "cy";
|
||||
arch = "mac";
|
||||
sha256 = "06640102bae8d6e8e7cda973c0ffee57942e7c7b63ebe028d089955fcf76d5d1";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/da/Firefox%20137.0.2.dmg";
|
||||
locale = "da";
|
||||
arch = "mac";
|
||||
sha256 = "29e3a4755b270fb5dcbeb81e712db86190e152bd9ff75c958db6fcff14a0f954";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/de/Firefox%20137.0.2.dmg";
|
||||
locale = "de";
|
||||
arch = "mac";
|
||||
sha256 = "d5b89c2a6540320b9e8463f0281c4394ec6412fc338fda662d12a8cd934a1498";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/dsb/Firefox%20137.0.2.dmg";
|
||||
locale = "dsb";
|
||||
arch = "mac";
|
||||
sha256 = "ce230738844e0b7817f958fe8851271407d5e7133f4f7f0416db6e432073b472";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/el/Firefox%20137.0.2.dmg";
|
||||
locale = "el";
|
||||
arch = "mac";
|
||||
sha256 = "34e1ae67991e4a69f231e13177f2a0eafc8507f39db3f2ad3ae7d587959c96ba";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/en-CA/Firefox%20137.0.2.dmg";
|
||||
locale = "en-CA";
|
||||
arch = "mac";
|
||||
sha256 = "1a4991a21ba167ea936fefbda44b3234d920c2d21c08575ccf70080a60b114a0";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/en-GB/Firefox%20137.0.2.dmg";
|
||||
locale = "en-GB";
|
||||
arch = "mac";
|
||||
sha256 = "b0fdfb19e02dad65937ebff967a7bdce30e258b5df2955339d25f18dac783bb3";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/en-US/Firefox%20137.0.2.dmg";
|
||||
locale = "en-US";
|
||||
arch = "mac";
|
||||
sha256 = "0338912d47bdcb9ea2c09bcf31b7e68a4ded1a083b60c129781534d535601ed5";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/eo/Firefox%20137.0.2.dmg";
|
||||
locale = "eo";
|
||||
arch = "mac";
|
||||
sha256 = "db332c356beae3e503d91d244ff8c3812fc2ad71771e5a3cd14718e59a04eb25";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/es-AR/Firefox%20137.0.2.dmg";
|
||||
locale = "es-AR";
|
||||
arch = "mac";
|
||||
sha256 = "ba30bee6090c3b0a6496caebbfcdfd2cfc9743117f0c9b18599be33cc9946526";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/es-CL/Firefox%20137.0.2.dmg";
|
||||
locale = "es-CL";
|
||||
arch = "mac";
|
||||
sha256 = "5dae707ae7ef358ac664797906231e4d715db8619b749da86b5f50792f883b76";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/es-ES/Firefox%20137.0.2.dmg";
|
||||
locale = "es-ES";
|
||||
arch = "mac";
|
||||
sha256 = "b1088f82d614d962059b3c41db1d6af6982da723a95759dceb42b4686b74bd64";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/es-MX/Firefox%20137.0.2.dmg";
|
||||
locale = "es-MX";
|
||||
arch = "mac";
|
||||
sha256 = "22fe787e228d5938669f2dd0d01549cdc235a883a9a97bf72b452f8e4bf676f0";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/et/Firefox%20137.0.2.dmg";
|
||||
locale = "et";
|
||||
arch = "mac";
|
||||
sha256 = "c780d13e4d68b8ba0b675a702b36c18f9059ccb0ca26710e2817f3041658fd79";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/eu/Firefox%20137.0.2.dmg";
|
||||
locale = "eu";
|
||||
arch = "mac";
|
||||
sha256 = "83f5e16fb76e42026203db4c39fecd834902a88c6a0afa3eca11bbf9c547e6e4";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/fa/Firefox%20137.0.2.dmg";
|
||||
locale = "fa";
|
||||
arch = "mac";
|
||||
sha256 = "c4f5035520bb840dd2004f6dc422ad5c4b16befb4528b171db8124bb6a64c85e";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ff/Firefox%20137.0.2.dmg";
|
||||
locale = "ff";
|
||||
arch = "mac";
|
||||
sha256 = "bdf87aeb239c62a0f8cb96f5fc41ca5d7dd43cc0c2920890eecf78057e6b2354";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/fi/Firefox%20137.0.2.dmg";
|
||||
locale = "fi";
|
||||
arch = "mac";
|
||||
sha256 = "1db519e48a2ad4c12fa066b14511a5266872bfff1abe4b4f031f40374df1aca5";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/fr/Firefox%20137.0.2.dmg";
|
||||
locale = "fr";
|
||||
arch = "mac";
|
||||
sha256 = "f874892f24e7f210e967c73950d14af8a5b3cde2402514196db8d217003e270e";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/fur/Firefox%20137.0.2.dmg";
|
||||
locale = "fur";
|
||||
arch = "mac";
|
||||
sha256 = "5f60638aa240f60308959b9d6bb61a00aaaabf3b4e06c93d7cd727c300da2523";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/fy-NL/Firefox%20137.0.2.dmg";
|
||||
locale = "fy-NL";
|
||||
arch = "mac";
|
||||
sha256 = "07a3a1016d0eb615a12387043852c30041bd3da08549b979e1638ac4b1fb296c";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ga-IE/Firefox%20137.0.2.dmg";
|
||||
locale = "ga-IE";
|
||||
arch = "mac";
|
||||
sha256 = "b72dc6eb821b087f8f79bb4e6a1ba6f4d48b2296190793ff9219abe826ded40b";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/gd/Firefox%20137.0.2.dmg";
|
||||
locale = "gd";
|
||||
arch = "mac";
|
||||
sha256 = "219190fb332c5085c5c72dd830c9fcee08224264ff5c0d86038177e89812c2ec";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/gl/Firefox%20137.0.2.dmg";
|
||||
locale = "gl";
|
||||
arch = "mac";
|
||||
sha256 = "598984fc8694f684097a24135cc01791005e70589fc1e565dcf1340b23a93be8";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/gn/Firefox%20137.0.2.dmg";
|
||||
locale = "gn";
|
||||
arch = "mac";
|
||||
sha256 = "d6f1d975c6c937b53a7053bcfc253d9f5e630dbdcd87965da32a214102b993bb";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/gu-IN/Firefox%20137.0.2.dmg";
|
||||
locale = "gu-IN";
|
||||
arch = "mac";
|
||||
sha256 = "7368b243496725882d201cf5a14ac5684b4f120576a0ed1054d07a6b67aefee2";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/he/Firefox%20137.0.2.dmg";
|
||||
locale = "he";
|
||||
arch = "mac";
|
||||
sha256 = "06ed7d2a71d7ea4c36b7dd0b217af8362ad31e86f040a8edea0bd55708e0e4c1";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/hi-IN/Firefox%20137.0.2.dmg";
|
||||
locale = "hi-IN";
|
||||
arch = "mac";
|
||||
sha256 = "fc343c01155dc45f26a0621c469e896e710b7d43b920121ed0c7d341ca08a0fa";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/hr/Firefox%20137.0.2.dmg";
|
||||
locale = "hr";
|
||||
arch = "mac";
|
||||
sha256 = "9949a1b6410dacaef0524d93c0c88e07de9661b0cfb9b42634eca9ab2ff31be6";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/hsb/Firefox%20137.0.2.dmg";
|
||||
locale = "hsb";
|
||||
arch = "mac";
|
||||
sha256 = "e48b175a60778167f999c9d87303743c8e8952847e79f68e4a1308f2f6501773";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/hu/Firefox%20137.0.2.dmg";
|
||||
locale = "hu";
|
||||
arch = "mac";
|
||||
sha256 = "a83ce43a51cd9990d211c9d3f994962766fb058e418a46f7abb47d74475101c8";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/hy-AM/Firefox%20137.0.2.dmg";
|
||||
locale = "hy-AM";
|
||||
arch = "mac";
|
||||
sha256 = "c1e7895162a71d4ecc0f8aeff69cca0340002119b8af167ac4dd426e3dbcf54a";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ia/Firefox%20137.0.2.dmg";
|
||||
locale = "ia";
|
||||
arch = "mac";
|
||||
sha256 = "1929182a747c18e7ebc44a2935266b4bd880141f8b0e196cc12527f594abaaaa";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/id/Firefox%20137.0.2.dmg";
|
||||
locale = "id";
|
||||
arch = "mac";
|
||||
sha256 = "9a48531f36c4bf366902ad490635573ccaf213b21550de556d29e587150edd9f";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/is/Firefox%20137.0.2.dmg";
|
||||
locale = "is";
|
||||
arch = "mac";
|
||||
sha256 = "ef90c70e0e1b6c9b89dd61897477516521432c0e8d8c8b821fece0f85bc866a9";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/it/Firefox%20137.0.2.dmg";
|
||||
locale = "it";
|
||||
arch = "mac";
|
||||
sha256 = "84b1e5cd711dd36e58083070d8ef4ad2b8dcfa5f9c46e9ab8c75fd2d2a4fda02";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ja-JP-mac/Firefox%20137.0.2.dmg";
|
||||
locale = "ja-JP-mac";
|
||||
arch = "mac";
|
||||
sha256 = "caf0be69e6bda5efab8a747bb6889ec7434499aa349d52ce730f3911093f4142";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ka/Firefox%20137.0.2.dmg";
|
||||
locale = "ka";
|
||||
arch = "mac";
|
||||
sha256 = "7cb0102822f384d800014ea8312e10bbe95e7365532fc78656734e07742ae195";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/kab/Firefox%20137.0.2.dmg";
|
||||
locale = "kab";
|
||||
arch = "mac";
|
||||
sha256 = "7bb47ed461141dd369cd8b9e2bac625aa53a3e7269d25c170e706ea4b5c426e2";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/kk/Firefox%20137.0.2.dmg";
|
||||
locale = "kk";
|
||||
arch = "mac";
|
||||
sha256 = "b59709c98f3b97c05f01036f69879e25fd56ac0307158ac7680ae8aa090268d6";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/km/Firefox%20137.0.2.dmg";
|
||||
locale = "km";
|
||||
arch = "mac";
|
||||
sha256 = "d7733f51afeaee03f117a2a38921d88c825bf4b094fc930a86cd23ee69992786";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/kn/Firefox%20137.0.2.dmg";
|
||||
locale = "kn";
|
||||
arch = "mac";
|
||||
sha256 = "7f4865043ac50dfd60eaeefbc3d7b2ac029008ab62d5803fe80789c390fb871f";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ko/Firefox%20137.0.2.dmg";
|
||||
locale = "ko";
|
||||
arch = "mac";
|
||||
sha256 = "25b309a88196e417aad4a2f8b2c1e03dd5f322ae376b312984cc086fad1bd14b";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/lij/Firefox%20137.0.2.dmg";
|
||||
locale = "lij";
|
||||
arch = "mac";
|
||||
sha256 = "d9de6ca58e77de6fa34029a6e5467a6460181582090c615c43683a841d4fc2e7";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/lt/Firefox%20137.0.2.dmg";
|
||||
locale = "lt";
|
||||
arch = "mac";
|
||||
sha256 = "36b772e79c1cc2db14dc9626d0430548a492fc836482b477a8c2041dbabf49ce";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/lv/Firefox%20137.0.2.dmg";
|
||||
locale = "lv";
|
||||
arch = "mac";
|
||||
sha256 = "c19c6359a05fe49a3877301d618afe5817b557647a73560831001c9af1e51b2b";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/mk/Firefox%20137.0.2.dmg";
|
||||
locale = "mk";
|
||||
arch = "mac";
|
||||
sha256 = "567ad3bda84eab88bcc15ed8f756e8b1d420d51d225c1ba572e6c41b715349f9";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/mr/Firefox%20137.0.2.dmg";
|
||||
locale = "mr";
|
||||
arch = "mac";
|
||||
sha256 = "d0c10516bfbd087629d70a892d41e696c073f54c56b1535e240f4b5c7ae13620";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ms/Firefox%20137.0.2.dmg";
|
||||
locale = "ms";
|
||||
arch = "mac";
|
||||
sha256 = "b875364796e29a46e339e0e3ddf3ba6c0fb9474463c9028faea81e251e4d65dd";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/my/Firefox%20137.0.2.dmg";
|
||||
locale = "my";
|
||||
arch = "mac";
|
||||
sha256 = "5e0106bd63d254fa4ac000389d498d879e0b59d6ae5c1a13e6c7d15775308733";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/nb-NO/Firefox%20137.0.2.dmg";
|
||||
locale = "nb-NO";
|
||||
arch = "mac";
|
||||
sha256 = "992e862a15dba3c6e8f53fd1409d31fafcba041218b9933975fb5d761553e960";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ne-NP/Firefox%20137.0.2.dmg";
|
||||
locale = "ne-NP";
|
||||
arch = "mac";
|
||||
sha256 = "dd941f8f28d06ef22fef4830b8c1ed2a5ffc36d0c734e00e3e2a4fe97637496a";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/nl/Firefox%20137.0.2.dmg";
|
||||
locale = "nl";
|
||||
arch = "mac";
|
||||
sha256 = "ac2180f489b409a9ade37e6c8930ba013ecb636c94357945d902d13dee19f0c5";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/nn-NO/Firefox%20137.0.2.dmg";
|
||||
locale = "nn-NO";
|
||||
arch = "mac";
|
||||
sha256 = "3fd991a1faaa7379b83f28b113acc123956fbcc9ccd7c7111a3b0f8e46ca8721";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/oc/Firefox%20137.0.2.dmg";
|
||||
locale = "oc";
|
||||
arch = "mac";
|
||||
sha256 = "c15967568dd5352fcf3400d0c79e9e13d2abc3bccc159780172ae40f70c1a3c3";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/pa-IN/Firefox%20137.0.2.dmg";
|
||||
locale = "pa-IN";
|
||||
arch = "mac";
|
||||
sha256 = "49026e93c33e0fc536dd5bb0239ca2324448128d50057e63e47335e9e285b39e";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/pl/Firefox%20137.0.2.dmg";
|
||||
locale = "pl";
|
||||
arch = "mac";
|
||||
sha256 = "8576d84fd5360dec11afa2556bc50b8ee32e90a21010bf5b0c691febad756d14";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/pt-BR/Firefox%20137.0.2.dmg";
|
||||
locale = "pt-BR";
|
||||
arch = "mac";
|
||||
sha256 = "3612360ea5dd86dba44334ef5dc208e44f5ef06e93d703b0697dec5e2a678235";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/pt-PT/Firefox%20137.0.2.dmg";
|
||||
locale = "pt-PT";
|
||||
arch = "mac";
|
||||
sha256 = "f0a182528b244a02d0e1b3e2ff3187033a794dd63f866578e5fa497a5d0196df";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/rm/Firefox%20137.0.2.dmg";
|
||||
locale = "rm";
|
||||
arch = "mac";
|
||||
sha256 = "694f367307198c1688c833e3cf9210a982ea81bd6b2da3c2b1d1d1ba6ac7e4bc";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ro/Firefox%20137.0.2.dmg";
|
||||
locale = "ro";
|
||||
arch = "mac";
|
||||
sha256 = "523f44d25b97eb0d90c9bf25c0818cbf9e7f0e0a3b229890f888cd201f09a661";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ru/Firefox%20137.0.2.dmg";
|
||||
locale = "ru";
|
||||
arch = "mac";
|
||||
sha256 = "6371d6b3100c5afac3b889302666a5f8829d30191c9d9058e4f5b16f949ad003";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sat/Firefox%20137.0.2.dmg";
|
||||
locale = "sat";
|
||||
arch = "mac";
|
||||
sha256 = "82e19e008d5c982426c7e2d141615d946cd443a1298cbfba0f4994e6f0377a13";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sc/Firefox%20137.0.2.dmg";
|
||||
locale = "sc";
|
||||
arch = "mac";
|
||||
sha256 = "2c28bf887db85846c26fcf24c8c09a822ff7742e6d320f9dcea804dbaec3d996";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sco/Firefox%20137.0.2.dmg";
|
||||
locale = "sco";
|
||||
arch = "mac";
|
||||
sha256 = "15d43544f7a7368e084fd3c47dc8dffc65fa7070b4ba37480ef76888dd91865b";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/si/Firefox%20137.0.2.dmg";
|
||||
locale = "si";
|
||||
arch = "mac";
|
||||
sha256 = "04c3f8ca200db6e7b0dd367532e62b6755af657cedb7df367a5e6a922fe19c7a";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sk/Firefox%20137.0.2.dmg";
|
||||
locale = "sk";
|
||||
arch = "mac";
|
||||
sha256 = "d050312556e04b19713b5cdac450bdb200de36b4f4385fadc2edfd0b9d1b2d62";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/skr/Firefox%20137.0.2.dmg";
|
||||
locale = "skr";
|
||||
arch = "mac";
|
||||
sha256 = "9c27004f425c9e14249e3a13527a0fbba3b49b176f7a6bad1931dab13dc94f32";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sl/Firefox%20137.0.2.dmg";
|
||||
locale = "sl";
|
||||
arch = "mac";
|
||||
sha256 = "e1aa16f0c14674a0d623aac03a7ea631a9a7bb51ec8e89ef18e7cef1e66ac17f";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/son/Firefox%20137.0.2.dmg";
|
||||
locale = "son";
|
||||
arch = "mac";
|
||||
sha256 = "25fea4b02a821724d84b9bcff85743474a068fe32c72e76cae75d1fe6057dabd";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sq/Firefox%20137.0.2.dmg";
|
||||
locale = "sq";
|
||||
arch = "mac";
|
||||
sha256 = "592da93e11b716e6658d213bbae9d11f8dd90ebd4ae9d63a518b1d002d1d12d9";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sr/Firefox%20137.0.2.dmg";
|
||||
locale = "sr";
|
||||
arch = "mac";
|
||||
sha256 = "091737118aaef94ad9fd7a692a0854ed2a374311e595ddcec3266ab6532f77d8";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/sv-SE/Firefox%20137.0.2.dmg";
|
||||
locale = "sv-SE";
|
||||
arch = "mac";
|
||||
sha256 = "c1352f29398755a2f8b4ec4e92ba0c6fc8b55c0940e50f0dbf6c61a07138ca96";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/szl/Firefox%20137.0.2.dmg";
|
||||
locale = "szl";
|
||||
arch = "mac";
|
||||
sha256 = "ab0a5ba35f586eefce56f01fd6135378055ed76f754f52bbd0858ba13bf964d8";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ta/Firefox%20137.0.2.dmg";
|
||||
locale = "ta";
|
||||
arch = "mac";
|
||||
sha256 = "d61533de5092f58f959d62ec97d951329ff299f35284620c618adae722a4415c";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/te/Firefox%20137.0.2.dmg";
|
||||
locale = "te";
|
||||
arch = "mac";
|
||||
sha256 = "d6e2046c07a095f06b2d4d97c9826737a0ce758f1c39d1b5d3e1cec461d1e3ab";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/tg/Firefox%20137.0.2.dmg";
|
||||
locale = "tg";
|
||||
arch = "mac";
|
||||
sha256 = "bd2a2ab2ecee5cb25139a5ef94f7856990441f73d9cf9e27178bc602cc9a8642";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/th/Firefox%20137.0.2.dmg";
|
||||
locale = "th";
|
||||
arch = "mac";
|
||||
sha256 = "dc18a3c5775a0f85a91b4a086c7a8a41b466713f569fb7b103e64c59ff1a313d";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/tl/Firefox%20137.0.2.dmg";
|
||||
locale = "tl";
|
||||
arch = "mac";
|
||||
sha256 = "7620067e056a11a55a3e180651f0a4c1d124362e4562647765c79bc8c91451c3";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/tr/Firefox%20137.0.2.dmg";
|
||||
locale = "tr";
|
||||
arch = "mac";
|
||||
sha256 = "bf388dcdbd5f1491527aa58ae4ec2a70bbf8b7f4b74c7a1af7edc20e82520afc";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/trs/Firefox%20137.0.2.dmg";
|
||||
locale = "trs";
|
||||
arch = "mac";
|
||||
sha256 = "dd67bbd845d581a927f5caf8d1df04dd3accf6a0263fc9bc0d3d50aa499ed641";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/uk/Firefox%20137.0.2.dmg";
|
||||
locale = "uk";
|
||||
arch = "mac";
|
||||
sha256 = "ea491d0f0d804b2ba2fde553cbb71335c6d0eee3279789055824a9d17314647d";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/ur/Firefox%20137.0.2.dmg";
|
||||
locale = "ur";
|
||||
arch = "mac";
|
||||
sha256 = "1ef7b1b36f76bdb38bc6dedcfc44838a76542b79f47ecdcef482e617539168ca";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/uz/Firefox%20137.0.2.dmg";
|
||||
locale = "uz";
|
||||
arch = "mac";
|
||||
sha256 = "c38f5aacd69ed2fa49ea6ee01f6611f0ad1dceb950962a973105ee9863359c8a";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/vi/Firefox%20137.0.2.dmg";
|
||||
locale = "vi";
|
||||
arch = "mac";
|
||||
sha256 = "e08e82463f0b5ed6756ddb3a59b1f9fe09916b1affe370da4e4b45366b47f81d";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/xh/Firefox%20137.0.2.dmg";
|
||||
locale = "xh";
|
||||
arch = "mac";
|
||||
sha256 = "51ca6320242e61ccaa192fda43da9ed33fb0c7e2849c2ee880af356d6a964a72";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/zh-CN/Firefox%20137.0.2.dmg";
|
||||
locale = "zh-CN";
|
||||
arch = "mac";
|
||||
sha256 = "1336d6cbc98b466e2d8200fd0bc166728b7f2f7269eccf1682a46d04fccf0ea0";
|
||||
}
|
||||
{
|
||||
url = "https://archive.mozilla.org/pub/firefox/releases/137.0.2/mac/zh-TW/Firefox%20137.0.2.dmg";
|
||||
locale = "zh-TW";
|
||||
arch = "mac";
|
||||
sha256 = "7dfb66a1efd8ebeae1dbc1a9c2b0bfaca73bb1602c55ec0afcf83d19c0b49c0d";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@@ -60,27 +60,28 @@ writeScript "update-${pname}" ''
|
||||
|
||||
# this is a list of sha256 and tarballs for both arches
|
||||
# Upstream files contains python repr strings like b'somehash', hence the sed dance
|
||||
shasums=`cat $HOME/shasums | sed -E s/"b'([a-f0-9]{64})'?(.*)"/'\1\2'/ | grep '\.tar\.[a-z0-9]\+'`
|
||||
shasums=`cat $HOME/shasums | sed -E s/"b'([a-f0-9]{64})'?(.*)"/'\1\2'/ | grep '\.\(tar\.[a-z0-9]\+\|dmg\)$' | grep -v mac-EME-free`
|
||||
|
||||
cat > $tmpfile <<EOF
|
||||
{
|
||||
version = "$version";
|
||||
sources = [
|
||||
EOF
|
||||
for arch in linux-x86_64 linux-i686 linux-aarch64; do
|
||||
for arch in linux-x86_64 linux-i686 linux-aarch64 mac; do
|
||||
# retriving a list of all tarballs for each arch
|
||||
# - only select tarballs for current arch
|
||||
# - only select tarballs for current version
|
||||
# - rename space with colon so that for loop doesnt
|
||||
# - inteprets sha and path as 2 lines
|
||||
IFS=$'\n'
|
||||
for line in `echo "$shasums" | \
|
||||
grep $arch | \
|
||||
grep "${baseName}-$version"'\.tar\.[a-z0-9]\+$' | \
|
||||
tr " " ":"`; do
|
||||
grep -i "${baseName}.$version"'\.\(tar\.[a-z0-9]\+\|dmg\)$' | \
|
||||
sed "s/ /:/ ; s/ /:/"`; do
|
||||
# create an entry for every locale
|
||||
cat >> $tmpfile <<EOF
|
||||
{
|
||||
url = "$url$version/`echo $line | cut -d":" -f3`";
|
||||
url = "$url$version/`echo $line | cut -d":" -f3 | sed "s/ /%20/"`";
|
||||
locale = "`echo $line | cut -d":" -f3 | sed "s/$arch\///" | sed "s/\/.*//"`";
|
||||
arch = "$arch";
|
||||
sha256 = "`echo $line | cut -d":" -f1`";
|
||||
|
||||
Reference in New Issue
Block a user