56a7ea6fbe
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/obs-linuxbrowser/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - directory tree listing: https://gist.github.com/d0ce1376180ae841789e118c1fd370a7 - du listing: https://gist.github.com/ee99a853a8b3bef5c469482ca3a3ec4c
49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
# 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/
|
|
|
|
{ stdenv, fetchFromGitHub, obs-studio, cmake, libcef
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "obs-linuxbrowser-${version}";
|
|
version = "0.4.0";
|
|
src = fetchFromGitHub {
|
|
owner = "bazukas";
|
|
repo = "obs-linuxbrowser";
|
|
rev = version;
|
|
sha256 = "1nqi04ici9n1xjliy1gaqy2bq8zj1z32dffk890x2hi7ml688y9h";
|
|
};
|
|
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 = [
|
|
"-DCEF_DIR=../../cef"
|
|
"-DOBS_INCLUDE=${obs-studio}/include/obs"
|
|
];
|
|
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";
|
|
homepage = https://github.com/bazukas/obs-linuxbrowser;
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
license = licenses.gpl2;
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|