nixpkgs-suyu/pkgs/os-specific/linux/akvcam/default.nix
Alyssa Ross 5ad9e2a74b linuxPackages.akvcam: 1.2.0 -> 1.2.2
The qmake-based build didn't seem to work any more, but there's a
Kbuild-based build system available anyway, so let's just switch to
that and save a dependency.

Also clarify license.
2021-08-30 19:20:08 +00:00

32 lines
799 B
Nix

{ lib, stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
pname = "akvcam";
version = "1.2.2";
src = fetchFromGitHub {
owner = "webcamoid";
repo = "akvcam";
rev = version;
sha256 = "1f0vjia2d7zj3y5c63lx1r537bdjx6821yxy29ilbrvsbjq2szj8";
};
sourceRoot = "source/src";
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;
};
}