@@ -0,0 +1,31 @@
1+{avahi, dbus, fetchurl, git, gzip, libav, libiconv, openssl, pkgconfig, python, stdenv, which, zlib}:
2+
3+let version = "4.0.4";
4+ pkgName = "tvheadend"; in
5+
6+stdenv.mkDerivation rec {
7+ name = "${pkgName}-${version}";
8+
9+ src = fetchurl {
10+ url = "https://github.com/tvheadend/tvheadend/archive/v${version}.tar.gz";
11+ sha256 = "acc5c852bccb32d6a281f523e78a1cceb4d41987fe015aba3f66e1898b02c168";
12+ };
13+
14+ enableParallelBuilding = true;
15+
16+ buildInputs = [ avahi dbus git gzip libav libiconv openssl pkgconfig python which zlib];
17+
18+ preConfigure = "patchShebangs ./configure";
19+
20+ meta = {
21+ description = "TV steaming server";
22+ longDescription = ''
23+ Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android
24+ supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, SAT>IP and HDHomeRun as input sources.
25+ Tvheadend offers the HTTP (VLC, MPlayer), HTSP (Kodi, Movian) and SAT>IP streaming.'';
26+ homepage = "https://tvheadend.org";
27+ license = stdenv.lib.licenses.gpl3;
28+ platforms = stdenv.lib.platforms.unix;
29+ maintainers = [ stdenv.lib.maintainers.simonvandel ];
30+ };
31+}