thunderbird, thunderbird.bin: Refactor: Reorder import lists.

Also `pkgs.lib` -> `lib`.
This commit is contained in:
Niklas Hambüchen 2020-12-22 02:02:47 +01:00
parent e72bd9f089
commit 443724873f
2 changed files with 25 additions and 24 deletions

View File

@ -1,22 +1,31 @@
{ stdenv, fetchurl, config, makeWrapper { stdenv, lib, fetchurl, config, makeWrapper
, alsaLib , alsaLib
, at-spi2-atk , at-spi2-atk
, atk , atk
, cairo , cairo
, coreutils
, cups , cups
, curl , curl
, dbus-glib
, dbus , dbus
, dbus-glib
, fontconfig , fontconfig
, freetype , freetype
, gdk-pixbuf , gdk-pixbuf
, glib , glib
, glibc , glibc
, gnome3
, gnugrep
, gnupg
, gnused
, gpgme
, gtk2 , gtk2
, gtk3 , gtk3
, kerberos , kerberos
, libcanberra
, libGL
, libGLU
, libX11 , libX11
, libXScrnSaver , libxcb
, libXcomposite , libXcomposite
, libXcursor , libXcursor
, libXdamage , libXdamage
@ -25,22 +34,14 @@
, libXi , libXi
, libXinerama , libXinerama
, libXrender , libXrender
, libXScrnSaver
, libXt , libXt
, libxcb
, libcanberra
, gnome3
, libGLU, libGL
, nspr , nspr
, nss , nss
, pango , pango
, runtimeShell
, writeScript , writeScript
, xidel , xidel
, coreutils
, gnused
, gnugrep
, gnupg
, gpgme
, runtimeShell
}: }:
# imports `version` and `sources` # imports `version` and `sources`
@ -59,9 +60,9 @@ let
systemLocale = config.i18n.defaultLocale or "en-US"; systemLocale = config.i18n.defaultLocale or "en-US";
defaultSource = stdenv.lib.findFirst (sourceMatches "en-US") {} sources; defaultSource = lib.findFirst (sourceMatches "en-US") {} sources;
source = stdenv.lib.findFirst (sourceMatches systemLocale) defaultSource sources; source = lib.findFirst (sourceMatches systemLocale) defaultSource sources;
name = "thunderbird-bin-${version}"; name = "thunderbird-bin-${version}";
in in
@ -76,7 +77,7 @@ stdenv.mkDerivation {
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
libPath = stdenv.lib.makeLibraryPath libPath = lib.makeLibraryPath
[ stdenv.cc.cc [ stdenv.cc.cc
alsaLib alsaLib
at-spi2-atk at-spi2-atk
@ -111,7 +112,7 @@ stdenv.mkDerivation {
nspr nspr
nss nss
pango pango
] + ":" + stdenv.lib.makeSearchPathOutput "lib" "lib64" [ ] + ":" + lib.makeSearchPathOutput "lib" "lib64" [
stdenv.cc.cc stdenv.cc.cc
]; ];
@ -163,8 +164,8 @@ stdenv.mkDerivation {
--set SNAP_NAME "thunderbird" \ --set SNAP_NAME "thunderbird" \
--set MOZ_LEGACY_PROFILES 1 \ --set MOZ_LEGACY_PROFILES 1 \
--set MOZ_ALLOW_DOWNGRADE 1 \ --set MOZ_ALLOW_DOWNGRADE 1 \
--prefix PATH : "${stdenv.lib.getBin gnupg}/bin" \ --prefix PATH : "${lib.getBin gnupg}/bin" \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.getLib gpgme}/lib" --prefix LD_LIBRARY_PATH : "${lib.getLib gpgme}/lib"
''; '';
passthru.updateScript = import ./../../browsers/firefox-bin/update.nix { passthru.updateScript = import ./../../browsers/firefox-bin/update.nix {
@ -174,14 +175,14 @@ stdenv.mkDerivation {
basePath = "pkgs/applications/networking/mailreaders/thunderbird-bin"; basePath = "pkgs/applications/networking/mailreaders/thunderbird-bin";
baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/"; baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/";
}; };
meta = with stdenv.lib; { meta = with lib; {
description = "Mozilla Thunderbird, a full-featured email client (binary package)"; description = "Mozilla Thunderbird, a full-featured email client (binary package)";
homepage = "http://www.mozilla.org/thunderbird/"; homepage = "http://www.mozilla.org/thunderbird/";
license = { license = {
free = false; free = false;
url = "http://www.mozilla.org/en-US/foundation/trademarks/policy/"; url = "http://www.mozilla.org/en-US/foundation/trademarks/policy/";
}; };
maintainers = with stdenv.lib.maintainers; [ ]; maintainers = with lib.maintainers; [ ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -14,15 +14,15 @@
, freetype , freetype
, glib , glib
, gnugrep , gnugrep
, gnused
, gnupg , gnupg
, gnused
, gpgme , gpgme
, icu , icu
, jemalloc , jemalloc
, lib , lib
, libevent
, libGL , libGL
, libGLU , libGLU
, libevent
, libjpeg , libjpeg
, libnotify , libnotify
, libpng , libpng
@ -338,7 +338,7 @@ stdenv.mkDerivation rec {
requiredSystemFeatures = [ "big-parallel" ]; requiredSystemFeatures = [ "big-parallel" ];
meta = with stdenv.lib; { meta = with lib; {
description = "A full-featured e-mail client"; description = "A full-featured e-mail client";
homepage = "https://www.thunderbird.net"; homepage = "https://www.thunderbird.net";
maintainers = with maintainers; [ maintainers = with maintainers; [