Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
curl,
|
|
obs-studio,
|
|
qtbase,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "obs-aitum-multistream";
|
|
version = "1.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Aitum";
|
|
repo = "obs-aitum-multistream";
|
|
tag = version;
|
|
hash = "sha256-TqddyTBRWLyfwYi9I0nQE8Z19YL2RwkZqUwi7F9XpwQ=";
|
|
};
|
|
|
|
# Remove after https://github.com/Aitum/obs-aitum-multistream/pull/15 is released :)
|
|
patches = [ ./obs-aitum-multistream.diff ];
|
|
|
|
# Fix FTBFS with Qt >= 6.8
|
|
prePatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail 'find_qt(COMPONENTS Widgets Core)' 'find_package(Qt6 REQUIRED COMPONENTS Core Widgets)'
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
curl
|
|
obs-studio
|
|
qtbase
|
|
];
|
|
dontWrapQtApps = true;
|
|
|
|
cmakeFlags = [
|
|
# Prevent deprecation warnings from failing the build
|
|
(lib.cmakeOptionType "string" "CMAKE_CXX_FLAGS" "-Wno-error=deprecated-declarations")
|
|
];
|
|
|
|
meta = {
|
|
description = "Plugin to stream everywhere from a single instance of OBS";
|
|
homepage = "https://github.com/Aitum/obs-aitum-multistream";
|
|
maintainers = with lib.maintainers; [ flexiondotorg ];
|
|
license = lib.licenses.gpl2Plus;
|
|
inherit (obs-studio.meta) platforms;
|
|
};
|
|
}
|