Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ea87d5fc8ade
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ab94e9a83a76
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 12, 2020

  1. Copy the full SHA
    f0baa13 View commit details

Commits on Jan 25, 2020

  1. Merge pull request #77565 from NilsIrl/wlrobs_2020

    obs-wlrobs: 20191008 -> 20200111
    grahamc authored Jan 25, 2020
    Copy the full SHA
    ab94e9a View commit details
Showing with 14 additions and 9 deletions.
  1. +14 −9 pkgs/applications/video/obs-studio/wlrobs.nix
23 changes: 14 additions & 9 deletions pkgs/applications/video/obs-studio/wlrobs.nix
Original file line number Diff line number Diff line change
@@ -5,28 +5,33 @@
# 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, fetchhg, wayland, obs-studio
, meson, ninja, pkgconfig, libX11
, dmabufSupport ? false, libdrm ? null, libGL ? null}:

assert dmabufSupport -> libdrm != null && libGL != null;

stdenv.mkDerivation {
pname = "obs-wlrobs";
version = "20191008";
version = "20200111";

src = fetchhg {
url = "https://hg.sr.ht/~scoopta/wlrobs";
rev = "82e2b93c6f662dfd9d69f7826c0096bef585c3ae";
sha256 = "1d2mlybkwyr0jw6paamazla2a1cyj60bs10i0lk9jclxnp780fy6";
rev = "8345bf985e390896d89e35e2feae1fa37722f4be";
sha256 = "0j01wkhwhhla4qx8mwyrq2qj9cfhxksxaq2k8rskmy2qbdkvvdpb";
};

buildInputs = [ wayland obs-studio ];

preBuild = ''
cd Release
'';
buildInputs = [ libX11 libGL libdrm meson ninja pkgconfig wayland obs-studio ];

installPhase = ''
mkdir -p $out/share/obs/obs-plugins/wlrobs/bin/64bit
cp ./libwlrobs.so $out/share/obs/obs-plugins/wlrobs/bin/64bit/
'';

mesonFlags = [
"-Duse_dmabuf=${if dmabufSupport then "true" else "false"}"
];

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;