summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2019-10-08 10:05:57 -0400
committerGraham Christensen <graham@grahamc.com>2019-10-08 12:49:49 -0400
commita763975ad1b7e6efb67b4d092a17e86ba2d01748 (patch)
tree9972c440d7de270d2c4d3a9f83979b6aae1e586b /pkgs/applications/video
parent8468a6f90f2c7ab93a758376112680c272a17bce (diff)
downloadnixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.tar
nixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.tar.gz
nixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.tar.bz2
nixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.tar.lz
nixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.tar.xz
nixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.tar.zst
nixpkgs-a763975ad1b7e6efb67b4d092a17e86ba2d01748.zip
obs-wlrobs: init at 20191008
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/obs-studio/wlrobs.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/video/obs-studio/wlrobs.nix b/pkgs/applications/video/obs-studio/wlrobs.nix
new file mode 100644
index 00000000000..13a53f94590
--- /dev/null
+++ b/pkgs/applications/video/obs-studio/wlrobs.nix
@@ -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" ];
+  };
+}