2021-03-25 09:56:26 +00:00
|
|
|
{ lib, fetchdarcs, python2Packages, libvncserver, zlib
|
2019-09-10 07:00:20 +01:00
|
|
|
, gnutls, libvpx, makeDesktopItem, mkDerivationWith }:
|
|
|
|
|
2021-03-25 09:56:26 +00:00
|
|
|
mkDerivationWith python2Packages.buildPythonApplication rec {
|
2014-05-16 21:46:03 +01:00
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "blink";
|
2019-09-10 07:00:20 +01:00
|
|
|
version = "3.2.0";
|
2016-09-18 23:00:00 +01:00
|
|
|
|
2018-03-30 17:01:12 +01:00
|
|
|
src = fetchdarcs {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://devel.ag-projects.com/repositories/blink-qt";
|
2018-03-30 17:01:12 +01:00
|
|
|
rev = "release-${version}";
|
2019-09-10 07:00:20 +01:00
|
|
|
sha256 = "19rcwr5scw48qnj79q1pysw95fz9h98nyc3161qy2kph5g7dwkc3";
|
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
|
|
|
|
2021-03-25 09:56:26 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2019-09-10 07:00:20 +01:00
|
|
|
pyqt5_with_qtwebkit
|
|
|
|
cjson
|
|
|
|
sipsimple
|
|
|
|
twisted
|
2021-03-05 15:21:18 +00:00
|
|
|
google-api-python-client
|
2019-09-10 07:00:20 +01:00
|
|
|
];
|
2014-05-16 21:46:03 +01:00
|
|
|
|
2019-09-10 07:00:20 +01:00
|
|
|
buildInputs = [
|
2021-03-25 09:56:26 +00:00
|
|
|
python2Packages.cython
|
2019-09-10 07:00:20 +01:00
|
|
|
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";
|
2020-06-25 03:18:37 +01:00
|
|
|
categories = "Internet;";
|
2016-03-20 14:36:03 +00:00
|
|
|
};
|
|
|
|
|
2019-09-10 07:00:20 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2014-05-16 21:46:03 +01:00
|
|
|
postInstall = ''
|
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
|
|
|
'';
|
|
|
|
|
2019-12-10 23:23:57 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(
|
|
|
|
--prefix "LD_LIBRARY_PATH" ":" "${gnutls.out}/lib"
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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
|
|
|
};
|
|
|
|
}
|