Merge pull request #217735 from SuperSandro2000/obs-hyperion

authored by

Sandro and committed by
GitHub
bcce8e04 66ee57d4

+5 -12
+5 -12
pkgs/applications/video/obs-studio/plugins/obs-hyperion/default.nix
··· 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "obs-hyperion"; 6 - version = "1.0.1"; 6 + version = "1.0.2"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "hyperion-project"; 10 10 repo = "hyperion-obs-plugin"; 11 11 rev = version; 12 - sha256 = "sha256-pfWfJWuIoa+74u5J76/GE+OuHkksbwOAPfsR9OGX3L4="; 12 + sha256 = "sha256-UAfjafoZhhhHRSo+eUBLhHaCmn2GYFcYyRb9wHIp/9I="; 13 13 }; 14 14 15 - nativeBuildInputs = [ cmake pkg-config ]; 16 - buildInputs = [ obs-studio libGL qtbase ]; 15 + nativeBuildInputs = [ cmake flatbuffers pkg-config ]; 16 + buildInputs = [ obs-studio flatbuffers libGL qtbase ]; 17 17 18 18 dontWrapQtApps = true; 19 19 20 20 cmakeFlags = [ 21 21 "-DOBS_SOURCE=${obs-studio.src}" 22 22 "-DGLOBAL_INSTALLATION=ON" 23 + "-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON" 23 24 ]; 24 25 25 26 preConfigure = '' 26 - # https://github.com/hyperion-project/hyperion-obs-plugin/issues/7 27 27 rm -rf external/flatbuffers 28 - cp -r ${flatbuffers.src} external/flatbuffers 29 - chmod -R a+w external 30 - ''; 31 - 32 - postInstall = '' 33 - # Remove flatbuffers install 34 - rm -rf $out/bin $out/lib/{libflatbuffers.a,cmake,pkgconfig} $out/include 35 28 ''; 36 29 37 30 meta = with lib; {