@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pythonPackages, pyqt4, cython, libvncserver, zlib, twisted
2−, gnutls, libvpx }:
2+, gnutls, libvpx, makeDesktopItem }:
33
44pythonPackages.buildPythonApplication rec {
55 name = "blink-${version}";
@@ -20,16 +20,30 @@ pythonPackages.buildPythonApplication rec {
2020
2121 buildInputs = [ cython zlib libvncserver libvpx ];
2222
23+ desktopItem = makeDesktopItem {
24+ name = "Blink";
25+ exec = "blink";
26+ comment = meta.description;
27+ desktopName = "Blink";
28+ icon = "blink";
29+ genericName = "Instant Messaging";
30+ categories = "Application;Internet;";
31+ };
32+
2333 postInstall = ''
2434 wrapProgram $out/bin/blink \
2535 --prefix LD_LIBRARY_PATH ":" ${gnutls}/lib
36+ mkdir -p "$out/share/applications"
37+ mkdir -p "$out/share/pixmaps"
38+ cp "$desktopItem"/share/applications/* "$out/share/applications"
39+ cp "$out"/share/blink/icons/blink.* "$out/share/pixmaps"
2640 '';
2741
2842 meta = with stdenv.lib; {
2943 homepage = http://icanblink.com/;
30− description = "A state of the art, easy to use SIP client";
44+ description = "A state of the art, easy to use SIP client for Voice, Video and IM";
3145 platforms = platforms.linux;
32− license = licenses.mit;
46+ license = licenses.gplv3;
3347 maintainers = with maintainers; [ pSub ];
3448 };
3549}