This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
718 B
Nix
35 lines
718 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
obs-studio,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "obs-markdown";
|
|
version = "0.2.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exeldro";
|
|
repo = "obs-markdown";
|
|
rev = version;
|
|
sha256 = "sha256-5ajX/cEa0n12Putx1k3ctl1v9wRzJRhyJNDlmjSMbeU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ obs-studio ];
|
|
|
|
postInstall = ''
|
|
rm -rf $out/obs-plugins $out/data
|
|
'';
|
|
|
|
meta = {
|
|
description = "Plugin for OBS Studio to add Markdown sources";
|
|
homepage = "https://github.com/exeldro/obs-markdown";
|
|
maintainers = with lib.maintainers; [ flexiondotorg ];
|
|
license = lib.licenses.gpl2Only;
|
|
inherit (obs-studio.meta) platforms;
|
|
};
|
|
}
|