Author: eelco
Date: Thu Oct  6 14:10:56 2011
New Revision: 29703
URL: https://nixos.org/websvn/nix/?rev=29703&sc=1

Log:
* Thunderbird: install a desktop item.

Modified:
   nixpkgs/trunk/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix

Modified: 
nixpkgs/trunk/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix  
Thu Oct  6 14:09:28 2011        (r29702)
+++ nixpkgs/trunk/pkgs/applications/networking/mailreaders/thunderbird/7.x.nix  
Thu Oct  6 14:10:56 2011        (r29703)
@@ -25,7 +25,7 @@
 
   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 @@
       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; {
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to