2020-11-30 08:33:03 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, kernel, qmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "akvcam";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.2.0";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "webcamoid";
|
|
|
|
repo = "akvcam";
|
|
|
|
rev = version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "0r5xg7pz0wl6pq5029rpzm9fn978vq0md31xjkp2amny7rrgxw72";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m644 -b -D src/akvcam.ko $out/lib/modules/${kernel.modDirVersion}/akvcam.ko
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Virtual camera driver for Linux";
|
|
|
|
homepage = "https://github.com/webcamoid/akvcam";
|
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|