plugins can have dependencies

This commit is contained in:
41666 2025-04-22 12:08:25 -07:00
parent 3dd055b640
commit a17d82f996
2 changed files with 13 additions and 14 deletions

View file

@ -13,6 +13,6 @@
# one can invoke stuff inline too without doing this.
markdollPlugins = [
(mkMarkdollPlugin "plural" ./plugins/plural.sh)
(mkMarkdollPlugin "tools" ./plugins/tools.py)
((mkMarkdollPlugin "tools" ./plugins/tools.py).override { buildInputs = [ pkgs.python3 ]; })
];
}

View file

@ -1,14 +1,13 @@
{ pkgs }: name: src: pkgs.stdenvNoCC.mkDerivation {
inherit name src;
version = "0.0.0";
dontUnpack = true;
{ pkgs }: name: src: let
drv = { buildInputs ? [], }: pkgs.stdenvNoCC.mkDerivation {
inherit name src buildInputs;
version = "0.0.0";
dontUnpack = true;
buildInputs = [
pkgs.python3
];
installPhase = "
mkdir -p $out/bin
cp $src $out/bin/${name}
";
}
installPhase = "
mkdir -p $out/bin
cp $src $out/bin/${name}
";
};
in pkgs.lib.customisation.makeOverridable drv { buildInputs = []; }