Merge pull request #210907 from Yarny0/dtv-scan-tables
dtv-scan-tables: use version from linuxtv.org
This commit is contained in:
commit
914c0fb9ac
5 changed files with 106 additions and 35 deletions
|
@ -1,32 +0,0 @@
|
||||||
{ lib
|
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
|
||||||
, v4l-utils
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "dtv-scan-tables";
|
|
||||||
version = "20221027";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "tvheadend";
|
|
||||||
repo = "dtv-scan-tables";
|
|
||||||
rev = "2a3dbfbab129c00d3f131c9c2f06b2be4c06fec6";
|
|
||||||
hash = "sha256-bJ+naUs3TDFul4PmpnWYld3j1Se+1X6U9jnECe3sno0=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
v4l-utils
|
|
||||||
];
|
|
||||||
|
|
||||||
installFlags = [
|
|
||||||
"DATADIR=$(out)"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Digital TV scan tables";
|
|
||||||
homepage = "https://github.com/tvheadend/dtv-scan-tables";
|
|
||||||
license = with licenses; [ gpl2Only lgpl21Only ];
|
|
||||||
maintainers = with maintainers; [ ];
|
|
||||||
};
|
|
||||||
}
|
|
54
pkgs/data/misc/dtv-scan-tables/linuxtv.nix
Normal file
54
pkgs/data/misc/dtv-scan-tables/linuxtv.nix
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, v4l-utils
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
version_ = "2022-04-30-57ed29822750";
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "dtv-scan-tables";
|
||||||
|
version = "${version_}-linuxtv";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://linuxtv.org/downloads/${pname}/${pname}-${version_}.tar.bz2";
|
||||||
|
hash = "sha256-amJoqjkkWTePo6E5IvwBWj+mP/gi9LDWTTPXE1Cm7J4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
v4l-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
sourceRoot = "usr/share/dvb";
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"PREFIX=$(out)"
|
||||||
|
];
|
||||||
|
|
||||||
|
allowedReferences = [ ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
# 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 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 maintainers; [ yarny ];
|
||||||
|
};
|
||||||
|
}
|
45
pkgs/data/misc/dtv-scan-tables/tvheadend.nix
Normal file
45
pkgs/data/misc/dtv-scan-tables/tvheadend.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, v4l-utils
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "dtv-scan-tables";
|
||||||
|
version = "20221027-tvheadend";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "tvheadend";
|
||||||
|
repo = "dtv-scan-tables";
|
||||||
|
rev = "2a3dbfbab129c00d3f131c9c2f06b2be4c06fec6";
|
||||||
|
hash = "sha256-bJ+naUs3TDFul4PmpnWYld3j1Se+1X6U9jnECe3sno0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
v4l-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"PREFIX=$(out)"
|
||||||
|
];
|
||||||
|
|
||||||
|
allowedReferences = [ ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Digital TV (DVB) channel/transponder scan tables";
|
||||||
|
homepage = "https://github.com/tvheadend/dtv-scan-tables";
|
||||||
|
license = with 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".
|
||||||
|
The package at hand is maintained and used by tvheadend,
|
||||||
|
it is a fork of the original one hosted by linuxtv.org.
|
||||||
|
'';
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -105,7 +105,7 @@ in stdenv.mkDerivation {
|
||||||
--replace /usr/bin/tar ${gnutar}/bin/tar
|
--replace /usr/bin/tar ${gnutar}/bin/tar
|
||||||
|
|
||||||
substituteInPlace src/input/mpegts/scanfile.c \
|
substituteInPlace src/input/mpegts/scanfile.c \
|
||||||
--replace /usr/share/dvb ${dtv-scan-tables}/dvbv5
|
--replace /usr/share/dvb ${dtv-scan-tables}/share/dvbv5
|
||||||
|
|
||||||
# the version detection script `support/version` reads this file if it
|
# the version detection script `support/version` reads this file if it
|
||||||
# exists, so let's just use that
|
# exists, so let's just use that
|
||||||
|
|
|
@ -459,7 +459,9 @@ with pkgs;
|
||||||
|
|
||||||
dsq = callPackage ../tools/misc/dsq { };
|
dsq = callPackage ../tools/misc/dsq { };
|
||||||
|
|
||||||
dtv-scan-tables = callPackage ../data/misc/dtv-scan-tables { };
|
dtv-scan-tables_linuxtv = callPackage ../data/misc/dtv-scan-tables/linuxtv.nix { };
|
||||||
|
dtv-scan-tables_tvheadend = callPackage ../data/misc/dtv-scan-tables/tvheadend.nix { };
|
||||||
|
dtv-scan-tables = dtv-scan-tables_linuxtv;
|
||||||
|
|
||||||
dufs = callPackage ../servers/http/dufs {
|
dufs = callPackage ../servers/http/dufs {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
@ -37908,7 +37910,9 @@ with pkgs;
|
||||||
|
|
||||||
tvbrowser-bin = callPackage ../applications/misc/tvbrowser/bin.nix { };
|
tvbrowser-bin = callPackage ../applications/misc/tvbrowser/bin.nix { };
|
||||||
|
|
||||||
tvheadend = callPackage ../servers/tvheadend { };
|
tvheadend = callPackage ../servers/tvheadend {
|
||||||
|
dtv-scan-tables = dtv-scan-tables_tvheadend;
|
||||||
|
};
|
||||||
|
|
||||||
twiggy = callPackage ../development/tools/twiggy { };
|
twiggy = callPackage ../development/tools/twiggy { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue