summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/v4l2loopback-dc
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-11-16 21:37:03 +0100
committermakefu <github@syntax-fehler.de>2020-11-16 21:37:03 +0100
commitc743b9e53c4dfe2a39409c8bd01f373ce86b8e06 (patch)
treec860a4c10d91ddc8a1578c44ee40519475e30810 /makefu/5pkgs/v4l2loopback-dc
parenta1ab1cde34c13cc0a1c78eee28835e22cdcc1794 (diff)
ma pkgs.droidcam: init software + kernel module
Diffstat (limited to 'makefu/5pkgs/v4l2loopback-dc')
-rw-r--r--makefu/5pkgs/v4l2loopback-dc/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/makefu/5pkgs/v4l2loopback-dc/default.nix b/makefu/5pkgs/v4l2loopback-dc/default.nix
new file mode 100644
index 000000000..2bb9d3d0b
--- /dev/null
+++ b/makefu/5pkgs/v4l2loopback-dc/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub, kernel, kmod }:
+
+stdenv.mkDerivation rec {
+ name = "v4l2loopback-dc-${version}-${kernel.version}";
+ version = "1.6";
+
+ src = fetchFromGitHub {
+ owner = "aramg";
+ repo = "droidcam";
+ rev = "v${version}";
+ sha256 = "1d9qpnmqa3pfwsrpjnxdz76ipk4w37bbxyrazchh4vslnfc886fx";
+ };
+
+ sourceRoot = "source/linux/v4l2loopback";
+
+ buildTargets = "v4l2loopback-dc";
+ hardeningDisable = [ "pic" ];
+
+ nativeBuildInputs = kernel.moduleBuildDependencies;
+ buildInputs = [ kmod ];
+
+
+ makeFlags = [
+ "KERNELRELEASE=${kernel.modDirVersion}"
+ "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
+ "INSTALL_MOD_PATH=$(out)"
+ ];
+
+ meta = with stdenv.lib; {
+ description = "A kernel module to create V4L2 loopback devices";
+ homepage = "https://github.com/aramg/droidcam";
+ license = licenses.gpl2;
+ maintainers = [ maintainers.makefu ];
+ platforms = platforms.linux;
+ };
+}