1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

facetimehd: update src to build with linux >= 5.6

also add kraem to maintainers
This commit is contained in:
kraem 2020-04-05 21:52:12 +02:00
parent 66758bc3e5
commit a5b0581cf7
No known key found for this signature in database
GPG key ID: 965CB0F7020C50BE

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, kernel }:
{ stdenv, lib, fetchFromGitHub, kernel }:
# facetimehd is not supported for kernels older than 3.19";
assert stdenv.lib.versionAtLeast kernel.version "3.19";
@ -44,9 +44,14 @@ stdenv.mkDerivation rec {
'';
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
preBuild = lib.optionalString (stdenv.lib.versionAtLeast kernel.version "5.6")
''
sed -i 's/ioremap_nocache/ioremap_cache/g' fthd_drv.c
'';
makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
@ -55,7 +60,7 @@ stdenv.mkDerivation rec {
homepage = https://github.com/patjak/bcwc_pcie;
description = "Linux driver for the Facetime HD (Broadcom 1570) PCIe webcam";
license = licenses.gpl2;
maintainers = with maintainers; [ womfoo grahamc ];
maintainers = with maintainers; [ womfoo grahamc kraem ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}