2021-08-30 14:50:35 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, kernel }:
|
2020-11-26 13:06:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "akvcam";
|
2021-08-30 14:50:35 +02:00
|
|
|
version = "1.2.2";
|
2020-11-26 13:06:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "webcamoid";
|
|
|
|
repo = "akvcam";
|
|
|
|
rev = version;
|
2021-08-30 14:50:35 +02:00
|
|
|
sha256 = "1f0vjia2d7zj3y5c63lx1r537bdjx6821yxy29ilbrvsbjq2szj8";
|
2020-11-26 13:06:35 +01:00
|
|
|
};
|
2021-08-30 14:50:35 +02:00
|
|
|
sourceRoot = "source/src";
|
2020-11-26 13:06:35 +01:00
|
|
|
|
2022-02-10 02:34:31 +01:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
2020-11-26 13:06:35 +01:00
|
|
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-08-30 14:50:35 +02:00
|
|
|
install -m644 -b -D akvcam.ko $out/lib/modules/${kernel.modDirVersion}/akvcam.ko
|
2020-11-26 13:06:35 +01:00
|
|
|
'';
|
|
|
|
|
2021-08-30 14:50:35 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-11-26 13:06:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Virtual camera driver for Linux";
|
|
|
|
homepage = "https://github.com/webcamoid/akvcam";
|
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
|
|
platforms = platforms.linux;
|
2021-08-30 14:50:35 +02:00
|
|
|
license = licenses.gpl2Only;
|
2022-05-23 14:00:14 +02:00
|
|
|
broken = kernel.kernelAtLeast "5.18";
|
2020-11-26 13:06:35 +01:00
|
|
|
};
|
|
|
|
}
|