mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
8a1c9a2ce2
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/tvheadend/versions. These checks were done: - built on NixOS - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -h` got 0 exit code - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend --help` got 0 exit code - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend help` got 0 exit code - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -V` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -v` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend --version` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend version` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -h` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend --help` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend help` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -h` got 0 exit code - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped --help` got 0 exit code - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped help` got 0 exit code - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -V` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -v` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped --version` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped version` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -h` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped --help` and found version 4.2.6 - ran `/nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped help` and found version 4.2.6 - found 4.2.6 with grep in /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6 - directory tree listing: https://gist.github.com/9bfa9dd5fc53c3f7b58b2db82fee94ef
67 lines
1.8 KiB
Nix
67 lines
1.8 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig
|
|
, avahi, dbus, gettext, git, gnutar, gzip, bzip2, ffmpeg, libiconv, openssl, python
|
|
, which, zlib }:
|
|
|
|
let
|
|
version = "4.2.6";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "tvheadend-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tvheadend";
|
|
repo = "tvheadend";
|
|
rev = "v${version}";
|
|
sha256 = "0rnhk0r34mfmz3cnf735nzkkyal7pnv16hfyrs0g4v5rk99rlab3";
|
|
};
|
|
|
|
buildInputs = [
|
|
avahi dbus gettext git gnutar gzip bzip2 ffmpeg libiconv openssl python
|
|
which zlib
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkgconfig ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# disable dvbscan, as having it enabled causes a network download which
|
|
# cannot happen during build.
|
|
configureFlags = [
|
|
"--disable-dvbscan"
|
|
"--disable-bintray_cache"
|
|
"--disable-ffmpeg_static"
|
|
"--disable-hdhomerun_client"
|
|
"--disable-hdhomerun_static"
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./configure
|
|
|
|
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 ]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "TV streaming 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;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ simonvandel ];
|
|
};
|
|
}
|