about summary refs log tree commit diff
path: root/pkgs/by-name/dt/dtv-scan-tables/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/dt/dtv-scan-tables/package.nix')
-rw-r--r--pkgs/by-name/dt/dtv-scan-tables/package.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/dt/dtv-scan-tables/package.nix b/pkgs/by-name/dt/dtv-scan-tables/package.nix
new file mode 100644
index 0000000000000..0009fdb63ab43
--- /dev/null
+++ b/pkgs/by-name/dt/dtv-scan-tables/package.nix
@@ -0,0 +1,48 @@
+{ lib
+, stdenv
+, fetchurl
+, v4l-utils
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "dtv-scan-tables";
+  version = "2024-03-24-7098bdd27548";
+
+  src = fetchurl {
+    url = "https://linuxtv.org/downloads/dtv-scan-tables/dtv-scan-tables-${finalAttrs.version}.tar.bz2";
+    hash = "sha256-P0yJgbOkgpBms5arwNonDlx+Z0tdGQ6SUyoGlRoH6Y4=";
+  };
+
+  nativeBuildInputs = [
+    v4l-utils
+  ];
+
+  sourceRoot = "usr/share/dvb";
+
+  makeFlags = [
+    "PREFIX=$(out)"
+  ];
+
+  allowedReferences = [ ];
+
+  meta = {
+    # git repo with current revision is here:
+    #downloadPage = "https://git.linuxtv.org/dtv-scan-tables.git";
+    # Weekly releases are supposed to be here
+    downloadPage = "https://linuxtv.org/downloads/dtv-scan-tables/";
+    # but sometimes they lag behind several weeks or even months.
+    description = "Digital TV (DVB) channel/transponder scan tables";
+    homepage = "https://www.linuxtv.org/wiki/index.php/Dtv-scan-tables";
+    license = with lib.licenses; [ gpl2Only lgpl21Only ];
+    longDescription = ''
+      When scanning for dvb channels,
+      most applications require an initial set of
+      transponder coordinates (frequencies etc.).
+      These coordinates differ, depending of the
+      receiver's location or on the satellite.
+      The package delivers a collection of transponder
+      tables ready to be used by software like "dvbv5-scan".
+    '';
+    maintainers = with lib.maintainers; [ yarny ];
+  };
+})