nixpkgs/pkgs/os-specific/linux/dddvb/default.nix
Martin Weinelt 9c48ac1b36
linuxPackages.dddvb: 0.9.38-pre.4 -> 0.9.38-pre.6
Apply patch to unbreak on 5.18+.
2022-08-05 12:08:07 +02:00

49 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, kernel
}:
stdenv.mkDerivation rec {
pname = "dddvb";
version = "0.9.38-pre.6";
src = fetchFromGitHub {
owner = "DigitalDevices";
repo = "dddvb";
rev = "refs/tags/${version}";
hash = "sha256-bt/vMnqRWDDChZ6R4JbCr77cz3nlSPkx6siC9KLSEqs=";
};
patches = [
(fetchpatch {
# pci_*_dma_mask no longer exists in 5.18
url = "https://github.com/DigitalDevices/dddvb/commit/871821d6a0be147313bb52570591ce3853b3d370.patch";
hash = "sha256-wY05HrsduvsIdp/KpS9NWfL3hR9IvGjuNCDljFn7dd0=";
})
];
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;
maintainers = with maintainers; [ hexa ];
platforms = platforms.linux;
};
}