forked from mirrors/nixpkgs
thunderbird-bin: fix update.nix after PR #214996
This commit is contained in:
parent
0582f13e3c
commit
3784756e4f
|
@ -197,7 +197,7 @@ stdenv.mkDerivation {
|
|||
# update with:
|
||||
# $ nix-shell maintainers/scripts/update.nix --argstr package firefox-bin-unwrapped
|
||||
passthru.updateScript = import ./update.nix {
|
||||
inherit pname channel writeScript xidel coreutils gnused gnugrep gnupg curl runtimeShell;
|
||||
inherit pname channel lib writeScript xidel coreutils gnused gnugrep gnupg curl runtimeShell;
|
||||
baseUrl =
|
||||
if channel == "devedition"
|
||||
then "https://archive.mozilla.org/pub/devedition/releases/"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ pname
|
||||
, channel
|
||||
, lib
|
||||
, writeScript
|
||||
, xidel
|
||||
, coreutils
|
||||
|
@ -46,7 +47,7 @@ in writeScript "update-${pname}" ''
|
|||
grep "^[0-9]" | \
|
||||
sort --version-sort | \
|
||||
grep -v "funnelcake" | \
|
||||
grep -e "${lib.optionalString isBeta "b"}\([[:digit:]]\|[[:digit:]][[:digit:]]\)$" | ${lib.optionalString (not isBeta) "grep -v \"b\" |"} \
|
||||
grep -e "${lib.optionalString isBeta "b"}\([[:digit:]]\|[[:digit:]][[:digit:]]\)$" | ${lib.optionalString (!isBeta) "grep -v \"b\" |"} \
|
||||
tail -1`
|
||||
|
||||
curl --silent -o $HOME/shasums "$url$version/SHA256SUMS"
|
||||
|
|
|
@ -196,7 +196,7 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
|
||||
passthru.updateScript = import ./../../browsers/firefox-bin/update.nix {
|
||||
inherit writeScript xidel coreutils gnused gnugrep curl gnupg runtimeShell;
|
||||
inherit lib writeScript xidel coreutils gnused gnugrep curl gnupg runtimeShell;
|
||||
pname = "thunderbird-bin";
|
||||
baseName = "thunderbird";
|
||||
channel = "release";
|
||||
|
|
Loading…
Reference in a new issue