2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, obs-studio, cmake, qtbase, ndi }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "obs-ndi";
|
2020-10-19 00:13:06 +00:00
|
|
|
version = "4.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ obs-studio qtbase ndi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Palakis";
|
|
|
|
repo = "obs-ndi";
|
|
|
|
rev = version;
|
2020-10-19 00:13:06 +00:00
|
|
|
sha256 = "1y3xdqp55jayhg4sinwiwpk194zc4f4jf0abz647x2fprsk9jz7s";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-search-path.patch ./hardcode-ndi-path.patch ];
|
|
|
|
|
|
|
|
postPatch = "sed -i -e s,@NDI@,${ndi},g src/obs-ndi.cpp";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBOBS_INCLUDE_DIR=${obs-studio}/include/obs"
|
|
|
|
"-DLIBOBS_LIB=${obs-studio}/lib"
|
|
|
|
"-DCMAKE_CXX_FLAGS=-I${obs-studio.src}/UI/obs-frontend-api"
|
|
|
|
];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Network A/V plugin for OBS Studio";
|
|
|
|
homepage = "https://github.com/Palakis/obs-ndi";
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = with maintainers; [ jshcmpbll ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|