depot/third_party/nixpkgs/pkgs/os-specific/linux/dddvb/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03: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;
broken = lib.versionAtLeast kernel.version "6.2";
};
}