2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-12-07 11:09:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libxml2
|
|
|
|
, libsndfile
|
|
|
|
, file
|
|
|
|
, readline
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, ucommon
|
|
|
|
, ccrtp
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtquickcontrols2
|
2021-06-10 03:57:09 +01:00
|
|
|
, alsa-lib
|
2019-12-07 11:09:02 +00:00
|
|
|
, speex
|
|
|
|
, ilbc
|
|
|
|
, mkDerivation
|
|
|
|
, bcg729
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "twinkle";
|
2021-11-21 06:19:17 +00:00
|
|
|
version = "unstable-2021-02-06";
|
2019-12-07 11:09:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LubosD";
|
2021-11-21 06:19:17 +00:00
|
|
|
repo = "twinkle";
|
|
|
|
rev = "2301b66a3f54b266675415d261985488d86e9e4c";
|
|
|
|
sha256 = "xSwcaj1Hm62iL7C/AxqjVR07VEae8gDgYdr2EWmCoOM=";
|
2019-12-07 11:09:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
file # libmagic
|
|
|
|
libsndfile
|
|
|
|
readline
|
|
|
|
ucommon
|
|
|
|
ccrtp
|
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtquickcontrols2
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2019-12-07 11:09:02 +00:00
|
|
|
speex
|
|
|
|
ilbc
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
bcg729
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_G729=On"
|
|
|
|
"-DWITH_SPEEX=On"
|
|
|
|
"-DWITH_ILBC=On"
|
|
|
|
/* "-DWITH_DIAMONDCARD=On" seems ancient and broken */
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-07 11:09:02 +00:00
|
|
|
changelog = "https://github.com/LubosD/twinkle/blob/${version}/NEWS";
|
|
|
|
description = "A SIP-based VoIP client";
|
|
|
|
homepage = "http://twinkle.dolezel.info/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.mkg20001 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|