Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 obs-studio, 8 libGL, 9 qtbase, 10 flatbuffers, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "obs-hyperion"; 15 version = "1.0.2"; 16 17 src = fetchFromGitHub { 18 owner = "hyperion-project"; 19 repo = "hyperion-obs-plugin"; 20 rev = version; 21 sha256 = "sha256-UAfjafoZhhhHRSo+eUBLhHaCmn2GYFcYyRb9wHIp/9I="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 flatbuffers 27 pkg-config 28 ]; 29 buildInputs = [ 30 obs-studio 31 flatbuffers 32 libGL 33 qtbase 34 ]; 35 36 dontWrapQtApps = true; 37 38 patches = [ ./check-state-changed.patch ]; 39 40 cmakeFlags = [ 41 "-DOBS_SOURCE=${obs-studio.src}" 42 "-DGLOBAL_INSTALLATION=ON" 43 "-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON" 44 ]; 45 46 NIX_CFLAGS_COMPILE = [ "-Wno-error" ]; 47 48 preConfigure = '' 49 rm -rf external/flatbuffers 50 ''; 51 52 meta = with lib; { 53 description = "OBS Studio plugin to connect to a Hyperion.ng server"; 54 homepage = "https://github.com/hyperion-project/hyperion-obs-plugin"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ algram ]; 57 platforms = [ "x86_64-linux" ]; 58 }; 59}