about summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-10-06 14:10:56 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-10-06 14:10:56 +0000
commitf1dcb1ccd071bde199ee6e03b845ecb3515472bc (patch)
tree46fedd10aa089e161cbb07eb046841cf18a299bc /pkgs/applications/networking/mailreaders
parentd1eddb691b543f856b5f72b9e50e36fcb393a9b0 (diff)
* Thunderbird: install a desktop item.
svn path=/nixpkgs/trunk/; revision=29703
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r--pkgs/applications/networking/mailreaders/thunderbird/7.x.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix b/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix
index 1f51a8e63b500..fb84271787c07 100644
--- a/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix
+++ b/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
 
   buildInputs =
     [ pkgconfig perl python zip bzip2 gtk dbus_glib alsaLib libIDL nspr libnotify
-      libnotify cairo pixman fontconfig yasm mesa nss
+      libnotify cairo pixman fontconfig yasm mesa /* nss */
     ];
 
   patches = [
@@ -69,6 +69,18 @@ stdenv.mkDerivation {
       substituteInPlace $out/lib/thunderbird-*/thunderbird \
           --replace /bin/pwd "$(type -tP pwd)" \
           --replace /bin/ls "$(type -tP ls)"
+
+      # Create a desktop item.
+      mkdir -p $out/share/applications
+      cat > $out/share/applications/thunderbird.desktop <<EOF
+      [Desktop Entry]
+      Type=Application
+      Exec=$out/bin/thunderbird
+      Icon=$out/lib/thunderbird-${version}/chrome/icons/default/default256.png
+      Name=Thunderbird
+      GenericName=Mail Reader
+      Categories=Application;Network;
+      EOF
     '';
 
   meta = with stdenv.lib; {