39 lines
807 B
Nix
39 lines
807 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
obs-studio,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "obs-source-clone";
|
|
version = "0.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exeldro";
|
|
repo = "obs-source-clone";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-0rBtFPfqVvB333eeWRpVe4TgrJTiBTIzsV/SSe3EgOc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ obs-studio ];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_OUT_OF_TREE" true)
|
|
];
|
|
|
|
postInstall = ''
|
|
rm -rf $out/obs-plugins $out/data
|
|
'';
|
|
|
|
meta = {
|
|
description = "Plugin for OBS Studio to clone sources";
|
|
homepage = "https://github.com/exeldro/obs-source-clone";
|
|
maintainers = with lib.maintainers; [ flexiondotorg ];
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|