Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tvheadend: include dtv scan tables #94155

Merged
merged 1 commit into from Jul 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 17 additions & 2 deletions pkgs/servers/tvheadend/default.nix
@@ -1,10 +1,22 @@
{ stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig
, avahi, dbus, gettext, git, gnutar, gzip, bzip2, ffmpeg_3, libiconv, openssl, python
, which, zlib }:
, v4l-utils, which, zlib }:

let
version = "4.2.8";

dtv-scan-tables = stdenv.mkDerivation {
pname = "dtv-scan-tables";
version = "2020-05-18";
src = fetchFromGitHub {
owner = "tvheadend";
repo = "dtv-scan-tables";
rev = "e3138a506a064f6dfd0639d69f383e8e576609da";
sha256 = "19ac9ds3rfc2xrqcywsbd1iwcpv7vmql7gp01iikxkzcgm2g2b6w";
};
nativeBuildInputs = [ v4l-utils ];
installFlags = [ "DATADIR=$(out)" ];
};
in stdenv.mkDerivation {
pname = "tvheadend";
inherit version;
Expand All @@ -28,7 +40,7 @@ in stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = [ "-Wno-error=format-truncation" "-Wno-error=stringop-truncation" ];

# disable dvbscan, as having it enabled causes a network download which
# cannot happen during build.
# cannot happen during build. We now include the dtv-scan-tables ourselves
configureFlags = [
"--disable-dvbscan"
"--disable-bintray_cache"
Expand All @@ -45,6 +57,9 @@ in stdenv.mkDerivation {
substituteInPlace src/config.c \
--replace /usr/bin/tar ${gnutar}/bin/tar

substituteInPlace src/input/mpegts/scanfile.c \
--replace /usr/share/dvb ${dtv-scan-tables}/dvbv5

# the version detection script `support/version` reads this file if it
# exists, so let's just use that
echo ${version} > rpm/version
Expand Down