mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #277795 from ck3d/tbs-20231210
linux.tbs: 2018.04.18 -> 20231210
This commit is contained in:
commit
f8eccf95a2
@ -1,31 +1,38 @@
|
||||
{ stdenv, lib, fetchFromGitHub, kernel, kmod, perl, patchutils, perlPackages }:
|
||||
{ stdenv, lib, fetchFromGitHub, kernel, kmod, patchutils, perlPackages }:
|
||||
let
|
||||
|
||||
media = fetchFromGitHub rec {
|
||||
name = repo;
|
||||
owner = "tbsdtv";
|
||||
repo = "linux_media";
|
||||
rev = "efe31531b77efd3a4c94516504a5823d31cdc776";
|
||||
sha256 = "1533qi3sb91v00289hl5zaj4l35r2sf9fqc6z5ky1vbb7byxgnlr";
|
||||
rev = "d0a7e44358f28064697e0eed309db03166dcd83b";
|
||||
hash = "sha256-BTHlnta5qv2bdPjD2bButwYGpwR/bq99/AUoZqTHHYw=";
|
||||
};
|
||||
|
||||
build = fetchFromGitHub rec {
|
||||
name = repo;
|
||||
owner = "tbsdtv";
|
||||
repo = "media_build";
|
||||
rev = "a0d62eba4d429e0e9d2c2f910fb203e817cac84b";
|
||||
sha256 = "1329s7w9xlqjqwkpaqsd6b5dmzhm97jw0c7c7zzmmbdkl289i4i4";
|
||||
rev = "88764363a3e3d36b3c59a0a2bf2244e262035d47";
|
||||
hash = "sha256-LFTxYVPudflxqYTSBIDNkTrGs09MOuYBXwpGYqWfEFQ=";
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "tbs";
|
||||
version = "2018.04.18-${kernel.version}";
|
||||
version = "20231210-${kernel.version}";
|
||||
|
||||
srcs = [ media build ];
|
||||
sourceRoot = build.name;
|
||||
|
||||
# https://github.com/tbsdtv/linux_media/wiki
|
||||
preConfigure = ''
|
||||
make dir DIR=../${media.name}
|
||||
make allyesconfig
|
||||
sed --regexp-extended --in-place v4l/.config \
|
||||
-e 's/(^CONFIG.*_RC.*=)./\1n/g' \
|
||||
-e 's/(^CONFIG.*_IR.*=)./\1n/g' \
|
||||
-e 's/(^CONFIG_VIDEO_VIA_CAMERA=)./\1n/g'
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
@ -44,9 +51,9 @@ in stdenv.mkDerivation {
|
||||
buildFlags = [ "VER=${kernel.modDirVersion}" ];
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
nativeBuildInputs = [ patchutils kmod perl perlPackages.ProcProcessTable ]
|
||||
nativeBuildInputs = [ patchutils kmod perlPackages.ProcProcessTable ]
|
||||
++ kernel.moduleBuildDependencies;
|
||||
|
||||
postInstall = ''
|
||||
@ -59,6 +66,6 @@ in stdenv.mkDerivation {
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ck3d ];
|
||||
priority = -1;
|
||||
broken = true;
|
||||
broken = kernel.kernelOlder "4.14" || kernel.kernelAtLeast "6.6";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user