Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created March 5, 2021 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andoriyu/eb82967a824f00675846c9610988be58 to your computer and use it in GitHub Desktop.
Save andoriyu/eb82967a824f00675846c9610988be58 to your computer and use it in GitHub Desktop.
{ 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