2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchpatch
|
2022-03-05 16:20:37 +00:00
|
|
|
, kernel
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dddvb";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.9.38-pre.6";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DigitalDevices";
|
|
|
|
repo = "dddvb";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-bt/vMnqRWDDChZ6R4JbCr77cz3nlSPkx6siC9KLSEqs=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# pci_*_dma_mask no longer exists in 5.18
|
|
|
|
url = "https://github.com/DigitalDevices/dddvb/commit/871821d6a0be147313bb52570591ce3853b3d370.patch";
|
|
|
|
hash = "sha256-wY05HrsduvsIdp/KpS9NWfL3hR9IvGjuNCDljFn7dd0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/depmod/d' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
INSTALL_MOD_PATH = placeholder "out";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/DigitalDevices/dddvb";
|
|
|
|
description = "ddbridge linux driver";
|
|
|
|
license = licenses.gpl2Only;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-03-05 16:20:37 +00:00
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
broken = lib.versionAtLeast kernel.version "6.2";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|