2017-04-22 19:10:52 +00:00
|
|
|
{avahi, cmake, dbus, fetchurl, gettext, git, gnutar, gzip, bzip2, ffmpeg, libiconv, openssl, pkgconfig, python
|
2015-06-30 10:58:28 +00:00
|
|
|
, stdenv, which, zlib}:
|
2015-06-20 20:33:57 +00:00
|
|
|
|
2015-10-21 07:01:42 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-04-22 19:10:52 +00:00
|
|
|
let version = "4.2.1";
|
2015-10-21 07:01:42 +00:00
|
|
|
pkgName = "tvheadend";
|
|
|
|
|
|
|
|
in
|
2015-06-20 20:33:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pkgName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tvheadend/tvheadend/archive/v${version}.tar.gz";
|
2017-04-22 19:10:52 +00:00
|
|
|
sha256 = "1wrj3w595c1hfl2vmfdmp5qncy5samqi7iisyq76jf3nlzgw6dvn";
|
2015-06-20 20:33:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-21 07:01:42 +00:00
|
|
|
# disable dvbscan, as having it enabled causes a network download which
|
|
|
|
# cannot happen during build.
|
2017-04-22 19:10:52 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-dvbscan"
|
|
|
|
"--disable-bintray_cache"
|
|
|
|
"--disable-ffmpeg_static"
|
|
|
|
"--disable-hdhomerun_client"
|
|
|
|
"--disable-hdhomerun_static"
|
|
|
|
];
|
2015-06-30 10:58:28 +00:00
|
|
|
|
2017-04-22 19:10:52 +00:00
|
|
|
buildPhase = "make";
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
buildInputs = [ avahi dbus cmake gettext git gnutar gzip bzip2 ffmpeg libiconv openssl pkgconfig python
|
2015-06-30 10:58:28 +00:00
|
|
|
which zlib ];
|
2015-06-20 20:33:57 +00:00
|
|
|
|
2015-10-24 15:50:30 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
substituteInPlace src/config.c --replace /usr/bin/tar ${gnutar}/bin/tar
|
|
|
|
'';
|
2015-06-20 20:33:57 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-03-17 17:28:48 +00:00
|
|
|
description = "TV streaming server";
|
2015-06-20 20:33:57 +00:00
|
|
|
longDescription = ''
|
|
|
|
Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android
|
|
|
|
supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, SAT>IP and HDHomeRun as input sources.
|
|
|
|
Tvheadend offers the HTTP (VLC, MPlayer), HTSP (Kodi, Movian) and SAT>IP streaming.'';
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://tvheadend.org;
|
2015-10-21 07:01:42 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.simonvandel ];
|
2015-06-20 20:33:57 +00:00
|
|
|
};
|
|
|
|
}
|