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
|
let
|
||||||
|
|
||||||
media = fetchFromGitHub rec {
|
media = fetchFromGitHub rec {
|
||||||
name = repo;
|
name = repo;
|
||||||
owner = "tbsdtv";
|
owner = "tbsdtv";
|
||||||
repo = "linux_media";
|
repo = "linux_media";
|
||||||
rev = "efe31531b77efd3a4c94516504a5823d31cdc776";
|
rev = "d0a7e44358f28064697e0eed309db03166dcd83b";
|
||||||
sha256 = "1533qi3sb91v00289hl5zaj4l35r2sf9fqc6z5ky1vbb7byxgnlr";
|
hash = "sha256-BTHlnta5qv2bdPjD2bButwYGpwR/bq99/AUoZqTHHYw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build = fetchFromGitHub rec {
|
build = fetchFromGitHub rec {
|
||||||
name = repo;
|
name = repo;
|
||||||
owner = "tbsdtv";
|
owner = "tbsdtv";
|
||||||
repo = "media_build";
|
repo = "media_build";
|
||||||
rev = "a0d62eba4d429e0e9d2c2f910fb203e817cac84b";
|
rev = "88764363a3e3d36b3c59a0a2bf2244e262035d47";
|
||||||
sha256 = "1329s7w9xlqjqwkpaqsd6b5dmzhm97jw0c7c7zzmmbdkl289i4i4";
|
hash = "sha256-LFTxYVPudflxqYTSBIDNkTrGs09MOuYBXwpGYqWfEFQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
pname = "tbs";
|
pname = "tbs";
|
||||||
version = "2018.04.18-${kernel.version}";
|
version = "20231210-${kernel.version}";
|
||||||
|
|
||||||
srcs = [ media build ];
|
srcs = [ media build ];
|
||||||
sourceRoot = build.name;
|
sourceRoot = build.name;
|
||||||
|
|
||||||
|
# https://github.com/tbsdtv/linux_media/wiki
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
make dir DIR=../${media.name}
|
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 = ''
|
postPatch = ''
|
||||||
@ -44,12 +51,12 @@ in stdenv.mkDerivation {
|
|||||||
buildFlags = [ "VER=${kernel.modDirVersion}" ];
|
buildFlags = [ "VER=${kernel.modDirVersion}" ];
|
||||||
installFlags = [ "DESTDIR=$(out)" ];
|
installFlags = [ "DESTDIR=$(out)" ];
|
||||||
|
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ patchutils kmod perl perlPackages.ProcProcessTable ]
|
nativeBuildInputs = [ patchutils kmod perlPackages.ProcProcessTable ]
|
||||||
++ kernel.moduleBuildDependencies;
|
++ kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
find $out/lib/modules/${kernel.modDirVersion} -name "*.ko" -exec xz {} \;
|
find $out/lib/modules/${kernel.modDirVersion} -name "*.ko" -exec xz {} \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -59,6 +66,6 @@ in stdenv.mkDerivation {
|
|||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ ck3d ];
|
maintainers = with maintainers; [ ck3d ];
|
||||||
priority = -1;
|
priority = -1;
|
||||||
broken = true;
|
broken = kernel.kernelOlder "4.14" || kernel.kernelAtLeast "6.6";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user