2015-10-24 16:50:30 +01:00
|
|
|
{avahi, dbus, fetchurl, git, gnutar, gzip, libav, libiconv, openssl, pkgconfig, python
|
2015-06-30 11:58:28 +01:00
|
|
|
, stdenv, which, zlib}:
|
2015-06-20 21:33:57 +01:00
|
|
|
|
2015-10-21 08:01:42 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-12-18 16:40:56 +00:00
|
|
|
let version = "4.0.8";
|
2015-10-21 08:01:42 +01:00
|
|
|
pkgName = "tvheadend";
|
|
|
|
|
|
|
|
in
|
2015-06-20 21:33:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pkgName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tvheadend/tvheadend/archive/v${version}.tar.gz";
|
2015-12-18 16:40:56 +00:00
|
|
|
sha256 = "0k4g7pvfyk4bxpsjdwv7bmbygbp7gfg9wrr2aqb099ncbz18bx04";
|
2015-06-20 21:33:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-21 08:01:42 +01:00
|
|
|
# disable dvbscan, as having it enabled causes a network download which
|
|
|
|
# cannot happen during build.
|
2015-06-30 11:58:28 +01:00
|
|
|
configureFlags = [ "--disable-dvbscan" ];
|
|
|
|
|
2015-10-24 16:50:30 +01:00
|
|
|
buildInputs = [ avahi dbus git gnutar gzip libav libiconv openssl pkgconfig python
|
2015-06-30 11:58:28 +01:00
|
|
|
which zlib ];
|
2015-06-20 21:33:57 +01:00
|
|
|
|
2015-10-24 16:50:30 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
substituteInPlace src/config.c --replace /usr/bin/tar ${gnutar}/bin/tar
|
|
|
|
'';
|
2015-06-20 21:33:57 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "TV steaming server";
|
|
|
|
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.'';
|
|
|
|
homepage = "https://tvheadend.org";
|
2015-10-21 08:01:42 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.simonvandel ];
|
2015-06-20 21:33:57 +01:00
|
|
|
};
|
|
|
|
}
|