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

50 lines
1.5 KiB
Nix
Raw Normal View History

2018-03-30 17:01:12 +01:00
{ stdenv, fetchdarcs, pythonPackages, libvncserver, zlib
2016-03-20 14:36:03 +00:00
, gnutls, libvpx, makeDesktopItem }:
2014-05-16 21:46:03 +01:00
pythonPackages.buildPythonApplication rec {
pname = "blink";
2018-03-30 17:01:12 +01:00
version = "3.0.3";
2018-03-30 17:01:12 +01:00
src = fetchdarcs {
url = http://devel.ag-projects.com/repositories/blink-qt;
rev = "release-${version}";
sha256 = "1vj6zzfvxygz0fzr8bhymcw6j4v8xmr0kba53d6qg285j7hj1bdi";
2014-05-16 21:46:03 +01:00
};
patches = [ ./pythonpath.patch ];
2015-04-08 05:57:48 +01:00
postPatch = ''
sed -i 's|@out@|'"''${out}"'|g' blink/resources.py
'';
2014-05-16 21:46:03 +01:00
propagatedBuildInputs = with pythonPackages; [ pyqt5_with_qtwebkit cjson sipsimple twisted google_api_python_client ];
2014-05-16 21:46:03 +01:00
buildInputs = [ pythonPackages.cython zlib libvncserver libvpx ];
2014-05-16 21:46:03 +01:00
2016-03-20 14:36:03 +00:00
desktopItem = makeDesktopItem {
name = "Blink";
exec = "blink";
comment = meta.description;
desktopName = "Blink";
icon = "blink";
genericName = "Instant Messaging";
categories = "Application;Internet;";
};
2014-05-16 21:46:03 +01:00
postInstall = ''
wrapProgram $out/bin/blink \
--prefix LD_LIBRARY_PATH ":" ${gnutls.out}/lib
2016-03-20 14:36:03 +00: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 21:46:03 +01:00
'';
2015-07-10 17:53:04 +01:00
meta = with stdenv.lib; {
2014-05-16 21:46:03 +01:00
homepage = http://icanblink.com/;
2016-03-20 14:36:03 +00:00
description = "A state of the art, easy to use SIP client for Voice, Video and IM";
2015-07-10 17:53:04 +01:00
platforms = platforms.linux;
2016-03-28 13:24:06 +01:00
license = licenses.gpl3;
2015-07-10 17:53:04 +01:00
maintainers = with maintainers; [ pSub ];
2014-05-16 21:46:03 +01:00
};
}