2018-05-04 23:29:01 +01:00
|
|
|
{stdenv, fetchurl, zlib, openssl, libre, librem, pkgconfig, gst_all_1
|
2020-06-07 13:39:09 +01:00
|
|
|
, cairo, mpg123, alsaLib, SDL, libv4l, celt, libsndfile, srtp, ffmpeg_3
|
2020-11-20 21:51:36 +00:00
|
|
|
, gsm, speex, portaudio, spandsp, libuuid, libvpx
|
2012-09-24 18:02:19 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-08 00:19:28 +00:00
|
|
|
version = "0.6.5";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "baresip";
|
2012-09-24 18:02:19 +01:00
|
|
|
src=fetchurl {
|
|
|
|
url = "http://www.creytiv.com/pub/baresip-${version}.tar.gz";
|
2019-12-08 00:19:28 +00:00
|
|
|
sha256 = "13di0ycdcr2q2a20mjvyaqfmvk5xldwqaxklqsz7470jnbc5n0rb";
|
2012-09-24 18:02:19 +01:00
|
|
|
};
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-05-04 23:29:01 +01:00
|
|
|
buildInputs = [zlib openssl libre librem cairo mpg123
|
2020-06-07 13:39:09 +01:00
|
|
|
alsaLib SDL libv4l celt libsndfile srtp ffmpeg_3 gsm speex portaudio spandsp libuuid
|
2020-11-20 21:51:36 +00:00
|
|
|
libvpx
|
2018-05-04 23:29:01 +01:00
|
|
|
] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]);
|
2012-09-24 18:02:19 +01:00
|
|
|
makeFlags = [
|
|
|
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
|
|
|
"LIBRE_INC=${libre}/include/re"
|
|
|
|
"LIBRE_SO=${libre}/lib"
|
|
|
|
"LIBREM_PATH=${librem}"
|
|
|
|
''PREFIX=$(out)''
|
|
|
|
"USE_VIDEO=1"
|
2016-09-25 23:23:04 +01:00
|
|
|
"CCACHE_DISABLE=1"
|
2012-09-24 18:02:19 +01:00
|
|
|
|
2017-03-31 21:33:44 +01:00
|
|
|
"USE_ALSA=1" "USE_AMR=1" "USE_CAIRO=1" "USE_CELT=1"
|
2018-05-04 23:29:01 +01:00
|
|
|
"USE_CONS=1" "USE_EVDEV=1" "USE_FFMPEG=1" "USE_GSM=1" "USE_GST1=1"
|
2017-03-31 21:33:44 +01:00
|
|
|
"USE_L16=1" "USE_MPG123=1" "USE_OSS=1" "USE_PLC=1" "USE_VPX=1"
|
|
|
|
"USE_PORTAUDIO=1" "USE_SDL=1" "USE_SNDFILE=1" "USE_SPEEX=1"
|
|
|
|
"USE_SPEEX_AEC=1" "USE_SPEEX_PP=1" "USE_SPEEX_RESAMP=1" "USE_SRTP=1"
|
2012-09-24 18:02:19 +01:00
|
|
|
"USE_STDIO=1" "USE_SYSLOG=1" "USE_UUID=1" "USE_V4L2=1" "USE_X11=1"
|
|
|
|
|
2016-09-25 23:23:04 +01:00
|
|
|
"USE_BV32=" "USE_COREAUDIO=" "USE_G711=1" "USE_G722=1" "USE_G722_1="
|
2017-03-31 21:33:44 +01:00
|
|
|
"USE_ILBC=" "USE_OPUS=" "USE_SILK="
|
2012-09-24 20:49:11 +01:00
|
|
|
]
|
2015-01-15 04:25:26 +00:00
|
|
|
++ stdenv.lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
2014-12-17 18:11:30 +00:00
|
|
|
++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
|
2012-09-24 20:49:11 +01:00
|
|
|
;
|
2017-03-31 21:33:44 +01:00
|
|
|
|
2016-09-06 18:09:54 +01:00
|
|
|
NIX_CFLAGS_COMPILE='' -I${librem}/include/rem -I${gsm}/include/gsm
|
2017-03-31 21:33:44 +01:00
|
|
|
-DHAVE_INTTYPES_H -D__GLIBC__
|
2016-09-06 18:09:54 +01:00
|
|
|
-D__need_timeval -D__need_timespec -D__need_time_t '';
|
2012-09-24 18:02:19 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.creytiv.com/baresip.html";
|
2012-09-24 18:02:19 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2015-05-28 18:20:29 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-07-01 08:51:46 +01:00
|
|
|
inherit version;
|
|
|
|
downloadPage = "http://www.creytiv.com/pub/";
|
|
|
|
updateWalker = true;
|
|
|
|
downloadURLRegexp = "/baresip-.*[.]tar[.].*";
|
2012-09-24 18:02:19 +01:00
|
|
|
};
|
|
|
|
}
|