Created
March 5, 2021 03:37
-
-
Save andoriyu/eb82967a824f00675846c9610988be58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, lib, fetchFromGitHub, kernel, kmod }: | |
stdenv.mkDerivation rec { | |
version = "4.1"; | |
pname = "seeed-voicecard"; | |
src = fetchFromGitHub { | |
owner = "respeaker"; | |
repo = "seeed-voicecard"; | |
rev = "v${version}"; | |
sha256 = "16q79y85g6hdq8a7ny81bhww6raqw5c3xjxqsqa8xkapyrd7s5bq"; | |
}; | |
#sourceRoot = "source/linux/seeed-voicecard"; | |
hardeningDisable = [ "pic" "format" ]; # 1 | |
nativeBuildInputs = kernel.moduleBuildDependencies; # 2 | |
makeFlags = [ | |
"KERNELRELEASE=${kernel.modDirVersion}" # 3 | |
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" # 4 | |
"INSTALL_MOD_PATH=$(out)" # 5 | |
]; | |
meta = with lib; { | |
description = | |
"The drivers of ReSpeaker Mic Hat,ReSpeaker 4 Mic Array,6-Mics Circular Array Kit, and 4-Mics Linear Array Kit for Raspberry Pi."; | |
homepage = "https://github.com/respeaker/seeed-voicecard"; | |
license = licenses.gpl3; | |
maintainers = [ maintainers.makefu ]; | |
platforms = platforms.linux; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment