feat(obs): add image-reaction OBS plugin packaging
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
obs-studio,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: rec {
|
||||
pname = "obs-image-reaction";
|
||||
version = "0.1.0";
|
||||
# https://github.com/scaledteam/obs-image-reaction
|
||||
src = fetchFromGitHub {
|
||||
owner = "scaledteam";
|
||||
repo = pname;
|
||||
rev = "4cd345e78c714e80e894cfb51c72b94135a6014d";
|
||||
hash = "sha256-mC1B8tveHx35pfbAcOlosB8YKaBVg87MjXbr79sf7+k=";
|
||||
};
|
||||
nativeBuildInputs = [cmake];
|
||||
buildInputs = [obs-studio];
|
||||
postInstall = "rm -rf $out/obs-plugins $out/data";
|
||||
|
||||
meta = {
|
||||
description = "OBS Plugin with image that reacts to sound source";
|
||||
homepage = "https://github.com/scaledteam/obs-image-reaction";
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
@@ -6,6 +6,7 @@
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.home.desktop.obs;
|
||||
obs-image-reaction = pkgs.callPackage ../../../packages/obs-image-reaction.nix {};
|
||||
in {
|
||||
options.home.desktop.obs.enable = mkEnableOption "Enables OBS Studio";
|
||||
config.programs.obs-studio = mkIf cfg.enable {
|
||||
@@ -13,11 +14,14 @@ in {
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
input-overlay
|
||||
obs-backgroundremoval
|
||||
obs-markdown
|
||||
obs-mute-filter
|
||||
obs-pipewire-audio-capture
|
||||
obs-scale-to-sound
|
||||
obs-source-clone
|
||||
obs-source-record
|
||||
obs-tuna
|
||||
obs-image-reaction
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user