Merge pull request #70750 from grahamc/wlrobs

obs-wlrobs: init at 20191008
This commit is contained in:
Graham Christensen 2019-10-08 14:26:56 -04:00 committed by GitHub
commit 21597ed69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# (the following is somewhat lifted from ./linuxbrowser.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-wlrobs
# mkdir -p ~/.config/obs-studio/plugins/wlrobs/bin/64bit
# ln -s ~/.nix-profile/share/obs/obs-plugins/wlrobs/bin/64bit/libwlrobs.so ~/.config/obs-studio/plugins/wlrobs/bin/64bit
{ stdenv, fetchhg, wayland, obs-studio }:
stdenv.mkDerivation {
pname = "obs-wlrobs";
version = "20191008";
src = fetchhg {
url = "https://hg.sr.ht/~scoopta/wlrobs";
rev = "82e2b93c6f662dfd9d69f7826c0096bef585c3ae";
sha256 = "1d2mlybkwyr0jw6paamazla2a1cyj60bs10i0lk9jclxnp780fy6";
};
buildInputs = [ wayland obs-studio ];
preBuild = ''
cd Release
'';
installPhase = ''
mkdir -p $out/share/obs/obs-plugins/wlrobs/bin/64bit
cp ./libwlrobs.so $out/share/obs/obs-plugins/wlrobs/bin/64bit/
'';
meta = with stdenv.lib; {
description = "An obs-studio plugin that allows you to screen capture on wlroots based wayland compositors";
homepage = https://hg.sr.ht/~scoopta/wlrobs;
maintainers = with maintainers; [ grahamc ];
license = licenses.gpl3;
platforms = [ "x86_64-linux" ];
};
}

View File

@ -19929,6 +19929,8 @@ in
obs-studio = libsForQt5.callPackage ../applications/video/obs-studio { };
obs-wlrobs = callPackage ../applications/video/obs-studio/wlrobs.nix { };
octoprint = callPackage ../applications/misc/octoprint { };
octoprint-plugins = callPackage ../applications/misc/octoprint/plugins.nix { };