2020-04-05 19:52:12 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, kernel }:
|
2015-12-29 18:02:36 +00:00
|
|
|
|
2022-03-30 18:57:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "facetimehd-${version}-${kernel.version}";
|
2024-04-03 13:16:24 +00:00
|
|
|
version = "0.6.8.1";
|
2015-12-29 18:02:36 +00:00
|
|
|
|
2016-10-15 11:41:53 +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.
|
2015-12-29 18:02:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patjak";
|
2022-07-21 18:35:52 +00:00
|
|
|
repo = "facetimehd";
|
|
|
|
rev = version;
|
2024-04-03 13:16:24 +00:00
|
|
|
sha256 = "sha256-h5Erga2hlDIWdDKQbkmkLY1aNCibFM7SVSnxVcoToaM=";
|
2015-12-29 18:02:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export INSTALL_MOD_PATH="$out"
|
|
|
|
'';
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "pic" ];
|
2020-04-05 19:52:12 +00:00
|
|
|
|
2018-01-01 00:34:09 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
2016-02-21 10:40:34 +00:00
|
|
|
|
2015-12-29 18:02:36 +00:00
|
|
|
makeFlags = [
|
|
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/patjak/bcwc_pcie";
|
2015-12-29 18:02:36 +00:00
|
|
|
description = "Linux driver for the Facetime HD (Broadcom 1570) PCIe webcam";
|
2024-05-26 12:16:07 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-05 19:52:12 +00:00
|
|
|
maintainers = with maintainers; [ womfoo grahamc kraem ];
|
2017-04-25 15:44:06 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2015-12-29 18:02:36 +00:00
|
|
|
};
|
|
|
|
}
|