2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
34 lines
919 B
Nix
34 lines
919 B
Nix
{ lib, stdenv, fetchFromGitHub, kernel }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "akvcam";
|
|
version = "1.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "webcamoid";
|
|
repo = "akvcam";
|
|
rev = version;
|
|
sha256 = "sha256-zvMPwgItp1bTq64DZcUbYls60XhgufOeEKaAoAFf64M=";
|
|
};
|
|
sourceRoot = "${src.name}/src";
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
makeFlags = kernel.makeFlags ++ [
|
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
];
|
|
|
|
installPhase = ''
|
|
install -m644 -b -D akvcam.ko $out/lib/modules/${kernel.modDirVersion}/akvcam.ko
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Virtual camera driver for Linux";
|
|
homepage = "https://github.com/webcamoid/akvcam";
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2Only;
|
|
broken = kernel.kernelAtLeast "5.18";
|
|
};
|
|
}
|