nix-obs-streamfx/obs-streamfx.nix

52 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2022-08-23 22:42:11 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
2022-12-27 20:59:42 +00:00
, ffmpeg_4
2022-08-23 22:42:11 +00:00
, ninja
, pkg-config
, qtbase
, obs-studio
}:
stdenv.mkDerivation rec {
pname = "obs-streamfx";
2024-01-06 19:28:01 +00:00
version = "0.12.0b299";
2022-08-23 22:42:11 +00:00
src = fetchFromGitHub {
owner = "Xaymar";
repo = "obs-StreamFx";
rev = version;
2024-01-06 19:28:01 +00:00
sha256 = "H93wwLiqzkKssxH4PI8OJltjVUlHwv8BKiS7S7rC1UI=";
2022-08-23 22:42:11 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ninja pkg-config ];
2022-12-27 20:59:42 +00:00
buildInputs = [ ffmpeg_4 obs-studio qtbase ];
2022-08-23 22:42:11 +00:00
dontWrapQtApps = true;
cmakeFlags = with lib; [
2022-12-27 20:59:42 +00:00
"-DCMAKE_BUILD_TYPE=Release"
"-DENABLE_CLANG=true"
"-DENABLE_PROFILING=off"
2024-01-06 19:28:01 +00:00
"-DPACKAGE_NAME=${pname}-${version}"
"-DVERSION=${version}"
2022-08-23 22:42:11 +00:00
"-DSTRUCTURE_PACKAGEMANAGER=true"
2024-01-06 19:28:01 +00:00
"-DSTANDALONE=true"
2022-08-23 22:42:11 +00:00
"-DENABLE_UPDATER=false"
"-DENABLE_FRONTEND=true"
"-DREQUIRE_JSON=true"
];
2024-01-06 19:28:01 +00:00
patches = [ ./parse-version.patch ];
2022-08-23 22:42:11 +00:00
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" ];
};
}