blob: e1ac542559aa368ec833f40bed3fc4ae7ff0dd2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# We don't have a wrapper which can supply obs-studio plugins so you have to
# somewhat manually install this:
# nix-env -f . -iA wlrobs
# mkdir -p ~/.config/obs-studio/plugins
# ln -s ~/.nix-profile/share/obs/obs-plugins/wlrobs ~/.config/obs-studio/plugins/
{ stdenv, fetchhg
, meson, ninja, pkg-config
, obs-studio, wlroots, wayland
, libX11, libGL, libdrm
}:
let
metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
name = "wlrobs-${version}";
version = metadata.rev;
src = fetchhg {
url = "https://hg.sr.ht/~scoopta/wlrobs";
rev = metadata.rev;
sha256 = metadata.sha256;
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ obs-studio wayland wlroots libX11 libGL libdrm ];
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 = "wlrobs is an obs-studio plugin that allows you to screen capture on wlroots based wayland compositors";
homepage = "https://sr.ht/~scoopta/wlrobs";
maintainers = with maintainers; [ colemickens ];
platforms = [ "x86_64-linux" "i686-linux" ];
#platforms = with platforms; linux;
};
}
|