2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, kernel }:
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "facetimehd-${version}-${kernel.version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.6.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Note: When updating this revision:
|
|
|
|
# 1. Also update pkgs/os-specific/linux/firmware/facetimehd-firmware/
|
|
|
|
# 2. Test the module and firmware change via:
|
|
|
|
# a. Give some applications a try (Skype, Hangouts, Cheese, etc.)
|
|
|
|
# b. Run: journalctl -f
|
|
|
|
# c. Then close the lid
|
|
|
|
# d. Then open the lid (and maybe press a key to wake it up)
|
|
|
|
# e. see if the module loads back (apps using the camera won't
|
|
|
|
# recover and will have to be restarted) and the camera
|
|
|
|
# still works.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patjak";
|
2022-08-12 12:06:08 +00:00
|
|
|
repo = "facetimehd";
|
|
|
|
rev = version;
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-Tze85Hx1YmStAKenmF/S1JuMDq5eVjBcs3LSWXjyE7w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export INSTALL_MOD_PATH="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 kraem ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|