mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
42 lines
901 B
Nix
42 lines
901 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
obs-studio,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "obs-source-record";
|
|
version = "0.4.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exeldro";
|
|
repo = "obs-source-record";
|
|
rev = version;
|
|
sha256 = "sha256-EykXa+7iVTnyCbT8rmadF3OP9Dmc1A4zxi4RukhuZ8s=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ obs-studio ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ];
|
|
|
|
cmakeFlags = [ "-DBUILD_OUT_OF_TREE=On" ];
|
|
|
|
postInstall = ''
|
|
rm -rf $out/{data,obs-plugins}
|
|
'';
|
|
|
|
meta = {
|
|
description = "OBS Studio plugin to make sources available to record via a filter";
|
|
homepage = "https://github.com/exeldro/obs-source-record";
|
|
maintainers = with lib.maintainers; [
|
|
robbins
|
|
elzorrorebelde
|
|
];
|
|
license = lib.licenses.gpl2Only;
|
|
inherit (obs-studio.meta) platforms;
|
|
};
|
|
}
|