nixpkgs/pkgs/os-specific/linux/akvcam/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
915 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, kernel }:
2020-11-26 13:06:35 +01:00
stdenv.mkDerivation rec {
pname = "akvcam";
version = "1.2.2";
2020-11-26 13:06:35 +01:00
src = fetchFromGitHub {
owner = "webcamoid";
repo = "akvcam";
rev = version;
sha256 = "1f0vjia2d7zj3y5c63lx1r537bdjx6821yxy29ilbrvsbjq2szj8";
2020-11-26 13:06:35 +01:00
};
sourceRoot = "source/src";
2020-11-26 13:06:35 +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 = ''
install -m644 -b -D akvcam.ko $out/lib/modules/${kernel.modDirVersion}/akvcam.ko
2020-11-26 13:06:35 +01: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;
license = licenses.gpl2Only;
broken = kernel.kernelAtLeast "5.18";
2020-11-26 13:06:35 +01:00
};
}