1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/os-specific/linux/akvcam/default.nix

33 lines
799 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, kernel }:
2020-11-26 12:06:35 +00:00
stdenv.mkDerivation rec {
pname = "akvcam";
version = "1.2.2";
2020-11-26 12:06:35 +00:00
src = fetchFromGitHub {
owner = "webcamoid";
repo = "akvcam";
rev = version;
sha256 = "1f0vjia2d7zj3y5c63lx1r537bdjx6821yxy29ilbrvsbjq2szj8";
2020-11-26 12:06:35 +00:00
};
sourceRoot = "source/src";
2020-11-26 12:06:35 +00:00
makeFlags = [
2020-11-26 12:06:35 +00: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 12:06:35 +00: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;
license = licenses.gpl2Only;
2020-11-26 12:06:35 +00:00
};
}