From 9ce111085151ffcd78d6541d44db8b4bb59b3eb5 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 1 Aug 2026 15:28:16 -0700 Subject: [PATCH 1/1] =?utf8?q?25.11:=20Formatting:=20nixfmt-classic=20?= =?utf8?q?=E2=86=92=20nixfmt-rfc-style?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- default.nix | 45 +++++++++++++++++++++++++++++++++------- modules/v4l2loopback.nix | 3 +-- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/default.nix b/default.nix index 6fef437..6fe9f8a 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,22 @@ -{ pkgs ? import { }, lint ? false }: -pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full - , gobject-introspection, gtk4, lib, makeDesktopItem, makeWrapper, mypy, pylint - , pygobject3, wrapGAppsHook4, }: +{ + pkgs ? import { }, + lint ? false, +}: +pkgs.python3Packages.callPackage ( + { + autopep8, + buildPythonPackage, + ffmpeg-full, + gobject-introspection, + gtk4, + lib, + makeDesktopItem, + makeWrapper, + mypy, + pylint, + pygobject3, + wrapGAppsHook4, + }: buildPythonPackage rec { pname = "srec"; version = "1.0.2"; @@ -11,8 +26,18 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full doCheck = true; checkPhase = "./test.sh"; - nativeBuildInputs = [ gobject-introspection makeWrapper wrapGAppsHook4 ]; - nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ]; + nativeBuildInputs = [ + gobject-introspection + makeWrapper + wrapGAppsHook4 + ]; + nativeCheckInputs = [ + mypy + ] + ++ lib.optionals lint [ + autopep8 + pylint + ]; buildInputs = [ gtk4 ]; pythonPath = [ pygobject3 ]; @@ -33,7 +58,10 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full comment = "Record video and audio"; desktopName = "SRec"; genericName = "Record Screen"; - categories = [ "AudioVideo" "Video" ]; + categories = [ + "AudioVideo" + "Video" + ]; }; meta = { @@ -43,4 +71,5 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full maintainers = with pkgs.lib.maintainers; [ chkno ]; }; - }) { } + } +) { } diff --git a/modules/v4l2loopback.nix b/modules/v4l2loopback.nix index 1939724..80eb1ae 100644 --- a/modules/v4l2loopback.nix +++ b/modules/v4l2loopback.nix @@ -2,8 +2,7 @@ # h/t: https://www.reddit.com/r/NixOS/comments/p8bqvu/how_to_install_v4l2looback_kernel_module/ { config, ... }: { - boot.extraModulePackages = with config.boot.kernelPackages; - [ v4l2loopback.out ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback.out ]; boot.kernelModules = [ "v4l2loopback" ]; boot.extraModprobeConfig = '' options v4l2loopback video_nr=8,9 exclusive_caps=1,1 card_label="Live Camera,Recording Camera" -- 2.51.2