1{ lib
2, stdenv
3, fetchurl
4, v4l-utils
5}:
6
7stdenv.mkDerivation rec {
8 pname = "dtv-scan-tables";
9 version = "2022-04-30-57ed29822750";
10
11 src = fetchurl {
12 url = "https://linuxtv.org/downloads/${pname}/${pname}-${version}.tar.bz2";
13 hash = "sha256-amJoqjkkWTePo6E5IvwBWj+mP/gi9LDWTTPXE1Cm7J4=";
14 };
15
16 nativeBuildInputs = [
17 v4l-utils
18 ];
19
20 sourceRoot = "usr/share/dvb";
21
22 makeFlags = [
23 "PREFIX=$(out)"
24 ];
25
26 allowedReferences = [ ];
27
28 meta = with lib; {
29 # git repo with current revision is here:
30 #downloadPage = "https://git.linuxtv.org/dtv-scan-tables.git";
31 # Weekly releases are supposed to be here
32 downloadPage = "https://linuxtv.org/downloads/dtv-scan-tables/";
33 # but sometimes they lag behind several weeks or even months.
34 description = "Digital TV (DVB) channel/transponder scan tables";
35 homepage = "https://www.linuxtv.org/wiki/index.php/Dtv-scan-tables";
36 license = with licenses; [ gpl2Only lgpl21Only ];
37 longDescription = ''
38 When scanning for dvb channels,
39 most applications require an initial set of
40 transponder coordinates (frequencies etc.).
41 These coordinates differ, depending of the
42 receiver's location or on the satellite.
43 The package delivers a collection of transponder
44 tables ready to be used by software like "dvbv5-scan".
45 '';
46 maintainers = with maintainers; [ yarny ];
47 };
48}