File tree Expand file tree Collapse file tree 5 files changed +1872
-272
lines changed
mailreaders/thunderbird-bin Expand file tree Collapse file tree 5 files changed +1872
-272
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ writeScript "update-${pname}" ''
9494 }
9595 EOF
9696
97- mv $tmpfile ${ channel } _sources.nix
97+ mv $tmpfile ${ channel } ${ if versionSuffix == "" then "" else "_ ${ versionSuffix } " } _sources.nix
9898
9999 popd
100100''
Original file line number Diff line number Diff line change 33# To update `thunderbird-bin`'s `release_sources.nix`, run from the nixpkgs root:
44#
55# nix-shell maintainers/scripts/update.nix --argstr package pkgs.thunderbird-bin-unwrapped
6+ # nix-shell maintainers/scripts/update.nix --argstr package pkgs.thunderbird-esr-bin-unwrapped
67{
78 lib ,
89 stdenv ,
2425 systemLocale ? config . i18n . defaultLocale or "en_US" ,
2526 patchelfUnstable , # have to use patchelfUnstable to support --no-clobber-old-sections
2627 generated ,
28+ versionSuffix ? "" ,
2729 applicationName ? "Thunderbird" ,
2830} :
2931
@@ -63,8 +65,7 @@ stdenv.mkDerivation {
6365 inherit pname version ;
6466
6567 src = fetchurl {
66- url = "https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/${ version } /${ source . arch } /${ source . locale } /thunderbird-${ version } .tar.bz2" ;
67- inherit ( source ) sha256 ;
68+ inherit ( source ) url sha256 ;
6869 } ;
6970
7071 nativeBuildInputs = [
@@ -112,12 +113,12 @@ stdenv.mkDerivation {
112113 curl
113114 gnupg
114115 runtimeShell
116+ versionSuffix
115117 ;
116118 baseName = "thunderbird" ;
117119 channel = "release" ;
118120 basePath = "pkgs/applications/networking/mailreaders/thunderbird-bin" ;
119121 baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/" ;
120- versionSuffix = "esr" ;
121122 } ;
122123
123124 passthru = {
You can’t perform that action at this time.
0 commit comments