uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/os-specific/linux/facetimehd/default.nix
Normal file
44
pkgs/os-specific/linux/facetimehd/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ stdenv, lib, fetchFromGitHub, kernel }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "facetimehd-${version}-${kernel.version}";
|
||||
version = "unstable-2020-04-16";
|
||||
|
||||
# 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";
|
||||
repo = "bcwc_pcie";
|
||||
rev = "82626d4892eeb9eb704538bf0dc49a00725ff451";
|
||||
sha256 = "118z6vjvhhcwvs4n3sgwwdagys9w718b8nkh6l9ic93732vv7cqx";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
export INSTALL_MOD_PATH="$out"
|
||||
'';
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = [
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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" ];
|
||||
broken = kernel.kernelAtLeast "5.18";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue