nixpkgs/pkgs/applications/networking/instant-messengers/blink/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pythonPackages, libvncserver, zlib
2016-03-20 15:36:03 +01:00
, gnutls, libvpx, makeDesktopItem }:
2014-05-16 22:46:03 +02:00
pythonPackages.buildPythonApplication rec {
2014-05-16 22:46:03 +02:00
name = "blink-${version}";
2016-03-12 22:33:00 +01:00
version = "2.0.0";
2014-05-16 22:46:03 +02:00
src = fetchurl {
url = "http://download.ag-projects.com/BlinkQt/${name}.tar.gz";
2016-03-12 22:33:00 +01:00
sha256 = "07hvy45pavgkvdlh4wbz3shsxh4fapg96qlqmfymdi1nfhwghb05";
2014-05-16 22:46:03 +02:00
};
patches = [ ./pythonpath.patch ];
2015-04-08 06:57:48 +02:00
postPatch = ''
sed -i 's|@out@|'"''${out}"'|g' blink/resources.py
'';
2014-05-16 22:46:03 +02:00
propagatedBuildInputs = with pythonPackages; [ pyqt4 cjson sipsimple twisted ];
2014-05-16 22:46:03 +02:00
buildInputs = [ pythonPackages.cython zlib libvncserver libvpx ];
2014-05-16 22:46:03 +02:00
2016-03-20 15:36:03 +01:00
desktopItem = makeDesktopItem {
name = "Blink";
exec = "blink";
comment = meta.description;
desktopName = "Blink";
icon = "blink";
genericName = "Instant Messaging";
categories = "Application;Internet;";
};
2014-05-16 22:46:03 +02:00
postInstall = ''
wrapProgram $out/bin/blink \
--prefix LD_LIBRARY_PATH ":" ${gnutls.out}/lib
2016-03-20 15:36:03 +01:00
mkdir -p "$out/share/applications"
mkdir -p "$out/share/pixmaps"
cp "$desktopItem"/share/applications/* "$out/share/applications"
cp "$out"/share/blink/icons/blink.* "$out/share/pixmaps"
2014-05-16 22:46:03 +02:00
'';
2015-07-10 18:53:04 +02:00
meta = with stdenv.lib; {
2014-05-16 22:46:03 +02:00
homepage = http://icanblink.com/;
2016-03-20 15:36:03 +01:00
description = "A state of the art, easy to use SIP client for Voice, Video and IM";
2015-07-10 18:53:04 +02:00
platforms = platforms.linux;
2016-03-28 14:24:06 +02:00
license = licenses.gpl3;
2015-07-10 18:53:04 +02:00
maintainers = with maintainers; [ pSub ];
2014-05-16 22:46:03 +02:00
};
}