2018-05-29 03:10:32 +01:00
|
|
|
# We don't have a wrapper which can supply obs-studio plugins so you have to
|
|
|
|
# somewhat manually install this:
|
|
|
|
|
|
|
|
# nix-env -f . -iA obs-linuxbrowser
|
|
|
|
# mkdir -p ~/.config/obs-studio/plugins
|
|
|
|
# ln -s ~/.nix-profile/share/obs/obs-plugins/obs-linuxbrowser ~/.config/obs-studio/plugins/
|
|
|
|
|
2019-10-28 19:50:20 +00:00
|
|
|
{ stdenv, fetchFromGitHub, obs-studio, cmake, libcef }:
|
2018-05-29 03:10:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "obs-linuxbrowser";
|
2019-10-28 19:50:20 +00:00
|
|
|
version = "0.6.1-6-gf86dba6";
|
|
|
|
|
2018-05-29 03:10:32 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bazukas";
|
|
|
|
repo = "obs-linuxbrowser";
|
|
|
|
rev = version;
|
2019-10-28 19:50:20 +00:00
|
|
|
sha256 = "08d7qz0721va88bcyia8p0ycw50f6x3yk97s3vzhsc9xpq691kpi";
|
2018-05-29 03:10:32 +01:00
|
|
|
};
|
2019-10-28 19:50:20 +00:00
|
|
|
|
2018-05-29 03:10:32 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ obs-studio ];
|
|
|
|
postUnpack = ''
|
|
|
|
mkdir -p cef/Release cef/Resources cef/libcef_dll_wrapper/
|
|
|
|
for i in ${libcef}/share/cef/*; do
|
|
|
|
ln -s $i cef/Release/
|
|
|
|
ln -s $i cef/Resources/
|
|
|
|
done
|
|
|
|
ln -s ${libcef}/lib/libcef.so cef/Release/
|
|
|
|
ln -s ${libcef}/lib/libcef_dll_wrapper.a cef/libcef_dll_wrapper/
|
|
|
|
ln -s ${libcef}/include cef/
|
|
|
|
'';
|
|
|
|
cmakeFlags = [
|
2018-09-25 15:54:07 +01:00
|
|
|
"-DCEF_ROOT_DIR=../../cef"
|
|
|
|
"-DOBS_INCLUDE_SEARCH_DIR=${obs-studio}/include/obs"
|
2018-05-29 03:10:32 +01:00
|
|
|
];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/obs/obs-plugins
|
|
|
|
cp -r build/obs-linuxbrowser $out/share/obs/obs-plugins/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Browser source plugin for obs-studio based on Chromium Embedded Framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bazukas/obs-linuxbrowser";
|
2018-05-29 03:10:32 +01:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|