linuxPackages_6_12_hardened.dddvb: 0.9.38-pre.6 -> 0.9.40
This commit is contained in:
@@ -2,49 +2,42 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
kernel,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dddvb";
|
||||
version = "0.9.38-pre.6";
|
||||
version = "0.9.40";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DigitalDevices";
|
||||
repo = "dddvb";
|
||||
tag = version;
|
||||
hash = "sha256-bt/vMnqRWDDChZ6R4JbCr77cz3nlSPkx6siC9KLSEqs=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-6FDvgmZ6KHydy5CfrI/nHhKAJeG1HQ/aRUojFDSEzQY=";
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
# package requires -Wno-format which collides with -Wformat-security
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-format-security";
|
||||
|
||||
makeFlags = [
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"MDIR=$(out)"
|
||||
];
|
||||
|
||||
INSTALL_MOD_PATH = placeholder "out";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/DigitalDevices/dddvb";
|
||||
description = "Device driver for all Digital Devices DVB demodulator and modulator cards";
|
||||
license = licenses.gpl2Only;
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux;
|
||||
broken = lib.versionAtLeast kernel.version "6.2";
|
||||
platforms = lib.platforms.linux;
|
||||
broken = lib.versionAtLeast kernel.version "6.15";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user