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