nixpkgs/pkgs/servers/tvheadend/default.nix

67 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig
, avahi, dbus, gettext, git, gnutar, gzip, bzip2, ffmpeg, libiconv, openssl, python
, which, zlib }:
2015-06-20 22:33:57 +02:00
let
tvheadend: 4.2.4 -> 4.2.5 Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -h` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend --help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -V` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -v` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend --version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -h` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend --help` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend help` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -h` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped --help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -V` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -v` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped --version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -h` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped --help` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped help` and found version 4.2.5 - found 4.2.5 with grep in /nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5 cc "@simonvandel"
2018-02-28 03:22:48 +01:00
version = "4.2.5";
in stdenv.mkDerivation rec {
name = "tvheadend-${version}";
src = fetchFromGitHub {
owner = "tvheadend";
repo = "tvheadend";
rev = "v${version}";
tvheadend: 4.2.4 -> 4.2.5 Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -h` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend --help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -V` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -v` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend --version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend -h` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend --help` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/tvheadend help` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -h` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped --help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped help` got 0 exit code - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -V` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -v` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped --version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped version` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped -h` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped --help` and found version 4.2.5 - ran `/nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5/bin/.tvheadend-wrapped help` and found version 4.2.5 - found 4.2.5 with grep in /nix/store/ffbiwxbfdywyhn0ng9lz8zpzjkvaswah-tvheadend-4.2.5 cc "@simonvandel"
2018-02-28 03:22:48 +01:00
sha256 = "199b0xm4lfdspmrirvzzg511yh358awciz23zmccvlvq86b548pz";
};
2015-06-20 22:33:57 +02:00
buildInputs = [
avahi dbus gettext git gnutar gzip bzip2 ffmpeg libiconv openssl python
which zlib
];
2015-06-20 22:33:57 +02:00
nativeBuildInputs = [ cmake makeWrapper pkgconfig ];
2015-06-20 22:33:57 +02:00
enableParallelBuilding = true;
# disable dvbscan, as having it enabled causes a network download which
# cannot happen during build.
2017-04-22 21:10:52 +02:00
configureFlags = [
"--disable-dvbscan"
"--disable-bintray_cache"
"--disable-ffmpeg_static"
"--disable-hdhomerun_client"
"--disable-hdhomerun_static"
];
2017-04-22 21:10:52 +02:00
dontUseCmakeConfigure = true;
preConfigure = ''
patchShebangs ./configure
2017-11-17 11:04:52 +01:00
substituteInPlace src/config.c \
--replace /usr/bin/tar ${gnutar}/bin/tar
# the version detection script `support/version` reads this file if it
# exists, so let's just use that
echo ${version} > rpm/version
'';
postInstall = ''
wrapProgram $out/bin/tvheadend \
--prefix PATH : ${stdenv.lib.makeBinPath [ bzip2 ]}
'';
2015-06-20 22:33:57 +02:00
meta = with stdenv.lib; {
description = "TV streaming server";
2015-06-20 22:33:57 +02:00
longDescription = ''
Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android
2015-06-20 22:33:57 +02:00
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;
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ simonvandel ];
2015-06-20 22:33:57 +02:00
};
}