2021-08-30 13:50:35 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, kernel }:
|
2020-11-26 12:06:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "akvcam";
|
2021-08-30 13:50:35 +01:00
|
|
|
version = "1.2.2";
|
2020-11-26 12:06:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "webcamoid";
|
|
|
|
repo = "akvcam";
|
|
|
|
rev = version;
|
2021-08-30 13:50:35 +01:00
|
|
|
sha256 = "1f0vjia2d7zj3y5c63lx1r537bdjx6821yxy29ilbrvsbjq2szj8";
|
2020-11-26 12:06:35 +00:00
|
|
|
};
|
2021-08-30 13:50:35 +01:00
|
|
|
sourceRoot = "source/src";
|
2020-11-26 12:06:35 +00:00
|
|
|
|
2022-02-10 01:34:31 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
2020-11-26 12:06:35 +00:00
|
|
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-08-30 13:50:35 +01:00
|
|
|
install -m644 -b -D akvcam.ko $out/lib/modules/${kernel.modDirVersion}/akvcam.ko
|
2020-11-26 12:06:35 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-30 13:50:35 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-11-26 12:06:35 +00: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 13:50:35 +01:00
|
|
|
license = licenses.gpl2Only;
|
2020-11-26 12:06:35 +00:00
|
|
|
};
|
|
|
|
}
|