Skip to content

Commit

Permalink
thunderbird, thunderbird.bin: Refactor: Reorder import lists.
Browse files Browse the repository at this point in the history
Also `pkgs.lib` -> `lib`.
  • Loading branch information
nh2 committed Dec 22, 2020
1 parent e72bd9f commit 4437248
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
{ stdenv, fetchurl, config, makeWrapper
{ stdenv, lib, fetchurl, config, makeWrapper
, alsaLib
, at-spi2-atk
, atk
, cairo
, coreutils
, cups
, curl
, dbus-glib
, dbus
, dbus-glib
, fontconfig
, freetype
, gdk-pixbuf
, glib
, glibc
, gnome3
, gnugrep
, gnupg
, gnused
, gpgme
, gtk2
, gtk3
, kerberos
, libcanberra
, libGL
, libGLU
, libX11
, libXScrnSaver
, libxcb
, libXcomposite
, libXcursor
, libXdamage
Expand All @@ -25,22 +34,14 @@
, libXi
, libXinerama
, libXrender
, libXScrnSaver
, libXt
, libxcb
, libcanberra
, gnome3
, libGLU, libGL
, nspr
, nss
, pango
, runtimeShell
, writeScript
, xidel
, coreutils
, gnused
, gnugrep
, gnupg
, gpgme
, runtimeShell
}:

# imports `version` and `sources`
Expand All @@ -59,9 +60,9 @@ let

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}";
in
Expand All @@ -76,7 +77,7 @@ stdenv.mkDerivation {

phases = "unpackPhase installPhase";

libPath = stdenv.lib.makeLibraryPath
libPath = lib.makeLibraryPath
[ stdenv.cc.cc
alsaLib
at-spi2-atk
Expand Down Expand Up @@ -111,7 +112,7 @@ stdenv.mkDerivation {
nspr
nss
pango
] + ":" + stdenv.lib.makeSearchPathOutput "lib" "lib64" [
] + ":" + lib.makeSearchPathOutput "lib" "lib64" [
stdenv.cc.cc
];

Expand Down Expand Up @@ -163,8 +164,8 @@ stdenv.mkDerivation {
--set SNAP_NAME "thunderbird" \
--set MOZ_LEGACY_PROFILES 1 \
--set MOZ_ALLOW_DOWNGRADE 1 \
--prefix PATH : "${stdenv.lib.getBin gnupg}/bin" \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.getLib gpgme}/lib"
--prefix PATH : "${lib.getBin gnupg}/bin" \
--prefix LD_LIBRARY_PATH : "${lib.getLib gpgme}/lib"
'';

passthru.updateScript = import ./../../browsers/firefox-bin/update.nix {
Expand All @@ -174,14 +175,14 @@ stdenv.mkDerivation {
basePath = "pkgs/applications/networking/mailreaders/thunderbird-bin";
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)";
homepage = "http://www.mozilla.org/thunderbird/";
license = {
free = false;
url = "http://www.mozilla.org/en-US/foundation/trademarks/policy/";
};
maintainers = with stdenv.lib.maintainers; [ ];
maintainers = with lib.maintainers; [ ];
platforms = platforms.linux;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
, freetype
, glib
, gnugrep
, gnused
, gnupg
, gnused
, gpgme
, icu
, jemalloc
, lib
, libevent
, libGL
, libGLU
, libevent
, libjpeg
, libnotify
, libpng
Expand Down Expand Up @@ -338,7 +338,7 @@ stdenv.mkDerivation rec {

requiredSystemFeatures = [ "big-parallel" ];

meta = with stdenv.lib; {
meta = with lib; {
description = "A full-featured e-mail client";
homepage = "https://www.thunderbird.net";
maintainers = with maintainers; [
Expand Down

0 comments on commit 4437248

Please sign in to comment.