Skip to content

Commit

Permalink
thunderbird: use copyDesktopItems hook
Browse files Browse the repository at this point in the history
  • Loading branch information
B4dM4n authored and Milan Pässler committed Nov 29, 2020
1 parent 65f8183 commit c3598cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
13 changes: 7 additions & 6 deletions pkgs/applications/networking/mailreaders/thunderbird/68.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, bzip2
, cargo
, common-updater-scripts
, copyDesktopItems
, coreutils
, curl
, dbus
Expand Down Expand Up @@ -83,6 +84,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoconf213
cargo
copyDesktopItems
gnused
llvmPackages.llvm
m4
Expand Down Expand Up @@ -262,8 +264,8 @@ stdenv.mkDerivation rec {

doCheck = false;

postInstall = let
desktopItem = makeDesktopItem {
desktopItems = [
(makeDesktopItem {
categories = lib.concatStringsSep ";" [ "Application" "Network" ];
desktopName = "Thunderbird";
genericName = "Mail Reader";
Expand All @@ -283,12 +285,11 @@ stdenv.mkDerivation rec {
"x-scheme-handler/snews"
"x-scheme-handler/nntp"
];
};
in ''
})
];
postInstall = ''
# TODO: Move to a dev output?
rm -rf $out/include $out/lib/thunderbird-devel-* $out/share/idl
${desktopItem.buildCommand}
'';

preFixup = ''
Expand Down
14 changes: 8 additions & 6 deletions pkgs/applications/networking/mailreaders/thunderbird/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, bzip2
, cargo
, common-updater-scripts
, copyDesktopItems
, coreutils
, curl
, dbus
Expand Down Expand Up @@ -82,6 +83,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoconf213
cargo
copyDesktopItems
gnused
llvmPackages.llvm
m4
Expand Down Expand Up @@ -257,8 +259,8 @@ stdenv.mkDerivation rec {

doCheck = false;

postInstall = let
desktopItem = makeDesktopItem {
desktopItems = [
(makeDesktopItem {
categories = lib.concatStringsSep ";" [ "Application" "Network" ];
desktopName = "Thunderbird";
genericName = "Mail Reader";
Expand All @@ -278,12 +280,12 @@ stdenv.mkDerivation rec {
"x-scheme-handler/snews"
"x-scheme-handler/nntp"
];
};
in ''
})
];

postInstall = ''
# TODO: Move to a dev output?
rm -rf $out/include $out/lib/thunderbird-devel-* $out/share/idl
${desktopItem.buildCommand}
'';

preFixup = ''
Expand Down

0 comments on commit c3598cc

Please sign in to comment.