summary refs log tree commit diff
path: root/pkgs/os-specific/linux/tbs
diff options
context:
space:
mode:
authorgoibhniu <cillian.deroiste@gmail.com>2018-05-02 15:03:39 +0200
committerGitHub <noreply@github.com>2018-05-02 15:03:39 +0200
commit9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8 (patch)
treebb35c6712b961d050173b8a657cba68dd609d265 /pkgs/os-specific/linux/tbs
parent8446ba26a8f098c98d06b24acce7588eac63eb1e (diff)
downloadnixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.tar
nixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.tar.gz
nixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.tar.bz2
nixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.tar.lz
nixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.tar.xz
nixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.tar.zst
nixpkgs-9b99738c84dfc5a66ec4e9aee1a30afc580a3cb8.zip
tbs: override the kernel dvb-core.ko and videodev.ko
Otherwise the kernel versions of dvb-core.ko and videodev.ko get
loaded instead of the versions from this package.
Diffstat (limited to 'pkgs/os-specific/linux/tbs')
-rw-r--r--pkgs/os-specific/linux/tbs/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/tbs/default.nix b/pkgs/os-specific/linux/tbs/default.nix
index db20a7ab821..291666c0b45 100644
--- a/pkgs/os-specific/linux/tbs/default.nix
+++ b/pkgs/os-specific/linux/tbs/default.nix
@@ -43,16 +43,21 @@ in stdenv.mkDerivation {
   buildFlags = [ "VER=${kernel.modDirVersion}" ];
   installFlags = [ "DESTDIR=$(out)" ];
 
-  hardeningDisable = [ "pic" "format" ];
+  hardeningDisable = [ "all" ];
 
   nativeBuildInputs = [ patchutils kmod perl perlPackages.ProcProcessTable ]
-  ++ lib.optional (lib.versionAtLeast kernel.version "4.14") [ libelf ];
+  ++ kernel.moduleBuildDependencies;
+
+   postInstall = ''
+    xz $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/media/dvb-core/dvb-core.ko
+    xz $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/media/v4l2-core/videodev.ko
+  '';
 
   meta = with lib; {
     homepage = https://www.tbsdtv.com/;
     description = "Linux driver for TBSDTV cards";
     license = licenses.gpl2;
     maintainers = with maintainers; [ ck3d ];
-    priority = 20;
+    priority = -1;
   };
 }