plugin support

This commit is contained in:
41666 2025-04-22 11:18:59 -07:00
parent 317dd961a2
commit 4ee5913bd0
7 changed files with 58 additions and 12 deletions

View file

@ -4,7 +4,9 @@
version,
# TODO: do not require flakes
markdollParser ? inputs.markdoll.packages.${pkgs.system}.markdoll,
markdollParser ? inputs.markdoll.packages.${pkgs.system}.markdoll.override({
danger = true;
}),
markdollPlugins ? [],
src,
@ -17,6 +19,7 @@ in pkgs.stdenvNoCC.mkDerivation {
inherit name version src;
buildPhase = ''
export PATH="$PATH:${pkgs.lib.makeBinPath markdollPlugins}"
mkdir dist
echoerr() { cat <<< "$@" 1>&2; }

View file

@ -1,7 +1,9 @@
{ pkgs }: binPath: pkgs.stdenvNoCC.mkDerivation {
src = binPath;
buildPhase = ''
mkdir -p $out
cp $src $out/plugin
'';
{ pkgs }: name: src: pkgs.stdenvNoCC.mkDerivation {
inherit name src;
version = "0.0.0";
dontUnpack = true;
installPhase = "
mkdir -p $out/bin
cp $src $out/bin/${name}
";
}