anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / twinkle / default.nix
blobaf00b360bf9b18aa73c2ca8736a5f7805e7d2eec
1 { lib
2 , fetchFromGitHub
3 , cmake
4 , libxml2
5 , libsndfile
6 , file
7 , readline
8 , bison
9 , flex
10 , ucommon
11 , ccrtp
12 , qtbase
13 , qttools
14 , qtquickcontrols2
15 , alsa-lib
16 , speex
17 , ilbc
18 , mkDerivation
19 , bcg729
22 mkDerivation rec {
23   pname = "twinkle";
24   version = "unstable-2023-03-25";
26   src = fetchFromGitHub {
27     owner = "LubosD";
28     repo = "twinkle";
29     rev = "355813d5640ad58c84dc063826069384470ce310";
30     hash = "sha256-u+RewFwW17Oz2+lJLlmwebaGn4ebTBquox9Av7Jh1as=";
31   };
33   buildInputs = [
34     libxml2
35     file # libmagic
36     libsndfile
37     readline
38     ucommon
39     ccrtp
40     qtbase
41     qttools
42     qtquickcontrols2
43     alsa-lib
44     speex
45     ilbc
46   ];
48   nativeBuildInputs = [
49     cmake
50     bison
51     flex
52     bcg729
53   ];
55   cmakeFlags = [
56     "-DWITH_G729=On"
57     "-DWITH_SPEEX=On"
58     "-DWITH_ILBC=On"
59     "-DHAVE_LIBATOMIC=atomic"
60     /* "-DWITH_DIAMONDCARD=On" seems ancient and broken */
61   ];
63   meta = with lib; {
64     changelog = "https://github.com/LubosD/twinkle/blob/${version}/NEWS";
65     description = "SIP-based VoIP client";
66     homepage = "http://twinkle.dolezel.info/";
67     license = licenses.gpl2Plus;
68     maintainers = [ maintainers.mkg20001 ];
69     platforms = platforms.linux;
70   };