48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ffmpeg
|
|
, libaom
|
|
, ninja
|
|
, pkg-config
|
|
, qtbase
|
|
, obs-studio
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "obs-streamfx";
|
|
version = "0.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Xaymar";
|
|
repo = "obs-StreamFx";
|
|
rev = version;
|
|
sha256 = "KDzSrvmR4kt+46zyfLtu8uqLk6YOwS8GOI70b5s4vR8=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
|
buildInputs = [ ffmpeg libaom obs-studio qtbase ];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
cmakeFlags = with lib; [
|
|
"-Dlibobs_SOURCE_DIR=${obs-studio.out}/lib"
|
|
"-DSTRUCTURE_PACKAGEMANAGER=true"
|
|
"-DENABLE_UPDATER=false"
|
|
"-DENABLE_FRONTEND=true"
|
|
"-DREQUIRE_JSON=true"
|
|
];
|
|
|
|
patches = [ ./obs-streamfx-force-frontend.patch ./obs-streamfx-no-download.patch ];
|
|
|
|
meta = with lib; {
|
|
description = "StreamFX is a plugin for OBS® Studio which adds many new effects, filters, sources, transitions and encoders - all for free! Be it 3D Transform, Blur, complex Masking, or even custom shaders, you'll find it all here.";
|
|
homepage = "https://s.xaymar.com/streamfx-dc";
|
|
maintainers = [ ];
|
|
license = licenses.gpl2Plus;
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|