summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/mailreaders
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2020-11-27 13:42:09 +0100
committerMilan Pässler <milan@petabyte.dev>2020-11-29 04:03:39 +0100
commitc3598cc7d33b9d4eb2643d28f266a971aac39cb3 (patch)
treeddaa18f8cf700fc0af042b0a63a443041c362306 /pkgs/applications/networking/mailreaders
parent65f8183685d5f24dffc332e95892fab413024560 (diff)
thunderbird: use copyDesktopItems hook
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r--pkgs/applications/networking/mailreaders/thunderbird/68.nix13
-rw-r--r--pkgs/applications/networking/mailreaders/thunderbird/default.nix14
2 files changed, 15 insertions, 12 deletions
diff --git a/pkgs/applications/networking/mailreaders/thunderbird/68.nix b/pkgs/applications/networking/mailreaders/thunderbird/68.nix
index ee5b7c5e17b0..60dc12054841 100644
--- a/pkgs/applications/networking/mailreaders/thunderbird/68.nix
+++ b/pkgs/applications/networking/mailreaders/thunderbird/68.nix
@@ -4,6 +4,7 @@
, bzip2
, cargo
, common-updater-scripts
+, copyDesktopItems
, coreutils
, curl
, dbus
@@ -83,6 +84,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoconf213
cargo
+ copyDesktopItems
gnused
llvmPackages.llvm
m4
@@ -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";
@@ -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 = ''
diff --git a/pkgs/applications/networking/mailreaders/thunderbird/default.nix b/pkgs/applications/networking/mailreaders/thunderbird/default.nix
index 8295e8dbc871..8f4c96bbbcfb 100644
--- a/pkgs/applications/networking/mailreaders/thunderbird/default.nix
+++ b/pkgs/applications/networking/mailreaders/thunderbird/default.nix
@@ -2,6 +2,7 @@
, bzip2
, cargo
, common-updater-scripts
+, copyDesktopItems
, coreutils
, curl
, dbus
@@ -82,6 +83,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoconf213
cargo
+ copyDesktopItems
gnused
llvmPackages.llvm
m4
@@ -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";
@@ -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 = ''