From 6bb697f1fff2750ec22fe88bf488c5c9a7edfd99 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 29 Sep 2025 02:43:08 +0200 Subject: [PATCH] obs-studio-plugins.obs-urlsource: remove Not maintained anymore and incompatible with obs-studio 32. --- .../video/obs-studio/plugins/default.nix | 2 - .../obs-studio/plugins/obs-urlsource.nix | 95 ------------------- 2 files changed, 97 deletions(-) delete mode 100644 pkgs/applications/video/obs-studio/plugins/obs-urlsource.nix diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index 96a0d0e83c81..5eeb4b7d0c90 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -94,8 +94,6 @@ obs-tuna = qt6Packages.callPackage ./obs-tuna { }; - obs-urlsource = qt6Packages.callPackage ./obs-urlsource.nix { }; - obs-vaapi = callPackage ./obs-vaapi { }; obs-vertical-canvas = qt6Packages.callPackage ./obs-vertical-canvas.nix { }; diff --git a/pkgs/applications/video/obs-studio/plugins/obs-urlsource.nix b/pkgs/applications/video/obs-studio/plugins/obs-urlsource.nix deleted file mode 100644 index e7f6abfbd38e..000000000000 --- a/pkgs/applications/video/obs-studio/plugins/obs-urlsource.nix +++ /dev/null @@ -1,95 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - cmake, - curl, - git, - obs-studio, - pugixml, - qtbase, - writeScript, -}: - -let - websocketpp = fetchFromGitHub { - owner = "zaphoyd"; - repo = "websocketpp"; - rev = "0.8.2"; - sha256 = "sha256-9fIwouthv2GcmBe/UPvV7Xn9P2o0Kmn2hCI4jCh0hPM="; - }; - - lexbor = fetchFromGitHub { - owner = "lexbor"; - repo = "lexbor"; - rev = "v2.3.0"; - sha256 = "sha256-s5fZWBhXC0fuHIUk1YX19bHagahOtSLlKQugyHCIlgI="; - }; - - asio = fetchFromGitHub { - owner = "chriskohlhoff"; - repo = "asio"; - rev = "asio-1-28-0"; - sha256 = "sha256-dkiUdR8FgDnnqdptaJjE4rvNlgpC5HZl6SQQ5Di2C2s="; - }; -in -stdenv.mkDerivation rec { - pname = "obs-urlsource"; - version = "0.3.7"; - - src = fetchFromGitHub { - owner = "locaal-ai"; - repo = "obs-urlsource"; - rev = version; - sha256 = "sha256-ZWwD8jJkL1rAUeanD4iChcgpnJaC5pPo36Ot36XOSx8="; - fetchSubmodules = true; - }; - - nativeBuildInputs = [ - cmake - git - ]; - buildInputs = [ - curl - obs-studio - pugixml - qtbase - ]; - dontWrapQtApps = true; - - # Update websocketpp and lexabor configurations to use pre-fetched sources - postPatch = '' - sed -i 's|URL .*|SOURCE_DIR "${websocketpp}"\n DOWNLOAD_COMMAND ""|' cmake/FetchWebsocketpp.cmake - sed -i \ - -e 's|GIT_REPOSITORY .*|SOURCE_DIR "${lexbor}"|' \ - -e 's|GIT_TAG .*|DOWNLOAD_COMMAND ""\n UPDATE_COMMAND ""|' \ - cmake/BuildLexbor.cmake - ''; - - postInstall = '' - rm -rf $out/lib/cmake - ''; - - NIX_CFLAGS_COMPILE = [ - "-I${websocketpp}" - "-I${asio}/asio/include" - ]; - - cmakeFlags = [ - # Prevent deprecation warnings from failing the build - (lib.cmakeOptionType "string" "CMAKE_CXX_FLAGS" "-Wno-error=deprecated-declarations") - (lib.cmakeBool "ENABLE_QT" true) - (lib.cmakeBool "USE_SYSTEM_CURL" true) - (lib.cmakeBool "USE_SYSTEM_PUGIXML" true) - (lib.cmakeBool "CMAKE_COMPILE_WARNING_AS_ERROR" false) - "-Wno-dev" - ]; - - meta = with lib; { - description = "OBS plugin to fetch data from a URL or file, connect to an API or AI service, parse responses and display text, image or audio on scene"; - homepage = "https://github.com/locaal-ai/obs-urlsource"; - maintainers = with maintainers; [ flexiondotorg ]; - license = licenses.gpl2Only; - inherit (obs-studio.meta) platforms; - }; -}