firefox-*-bin: updates (#26462)
* firefox-beta-bin: 51.0b8 -> 54.0b13 * firefox-devedition-bin: init at 54.0b14 Firefox DevEdition became a new product of Mozilla and is "repackaged" Firefox Beta with its own release channel and six weeks release cycle as other channels. It is no longer being built on nightly basis * updated the update.nix script to facilitata firefox-devedition-bin * disabling automatic updates by pointing to non existing channel * f firefoxWrapper looks for gtk3 attribute to wrap the executable gtk3 to wrap the binary with needed ``XDG_DATA_DIRS``
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ name
|
||||
, channel
|
||||
, writeScript
|
||||
, xidel
|
||||
, coreutils
|
||||
@@ -8,13 +9,19 @@
|
||||
, gnupg
|
||||
, baseName ? "firefox"
|
||||
, basePath ? "pkgs/applications/networking/browsers/firefox-bin"
|
||||
, baseUrl ? "http://archive.mozilla.org/pub/firefox/releases/"
|
||||
}:
|
||||
|
||||
let
|
||||
version = (builtins.parseDrvName name).version;
|
||||
isBeta = builtins.stringLength version + 1 == builtins.stringLength (builtins.replaceStrings ["b"] ["bb"] version);
|
||||
in writeScript "update-${baseName}-bin" ''
|
||||
|
||||
baseUrl =
|
||||
if channel == "devedition"
|
||||
then "http://archive.mozilla.org/pub/devedition/releases/"
|
||||
else "http://archive.mozilla.org/pub/firefox/releases/";
|
||||
|
||||
isBeta =
|
||||
channel != "release";
|
||||
|
||||
in writeScript "update-${name}" ''
|
||||
PATH=${coreutils}/bin:${gnused}/bin:${gnugrep}/bin:${xidel}/bin:${curl}/bin:${gnupg}/bin
|
||||
set -eux
|
||||
pushd ${basePath}
|
||||
@@ -80,7 +87,7 @@ in writeScript "update-${baseName}-bin" ''
|
||||
}
|
||||
EOF
|
||||
|
||||
mv $tmpfile ${if isBeta then "beta_" else ""}sources.nix
|
||||
mv $tmpfile ${channel}_sources.nix
|
||||
|
||||
popd
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user