diff options
Diffstat (limited to 'overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs')
-rw-r--r-- | overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/default.nix | 40 | ||||
-rw-r--r-- | overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/metadata.nix | 7 |
2 files changed, 47 insertions, 0 deletions
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/default.nix b/overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/default.nix new file mode 100644 index 000000000000..e1ac542559aa --- /dev/null +++ b/overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/default.nix @@ -0,0 +1,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; + }; +} diff --git a/overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/metadata.nix b/overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/metadata.nix new file mode 100644 index 000000000000..73cf32ddd133 --- /dev/null +++ b/overlays/patches/nixpkgs-wayland/pkgs/obs-wlrobs/metadata.nix @@ -0,0 +1,7 @@ +{ + repo_hg = "https://hg.sr.ht/~scoopta/wlrobs"; + branch = "default"; + rev = "c0b86a1f57b8"; + sha256 = "sha256-GiYNV8KRWTStbmI3BhHmR46jYCPxhdj/OB2FQmkcot4="; + revdate = "2020-08-12 12:00:28"; +} |