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. # one can invoke stuff inline too without doing this.
markdollPlugins = [ markdollPlugins = [
(mkMarkdollPlugin "plural" ./plugins/plural.sh) (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 { { pkgs }: name: src: let
inherit name src; drv = { buildInputs ? [], }: pkgs.stdenvNoCC.mkDerivation {
version = "0.0.0"; inherit name src buildInputs;
dontUnpack = true;
version = "0.0.0";
dontUnpack = true;
buildInputs = [ installPhase = "
pkgs.python3 mkdir -p $out/bin
]; cp $src $out/bin/${name}
";
installPhase = " };
mkdir -p $out/bin in pkgs.lib.customisation.makeOverridable drv { buildInputs = []; }
cp $src $out/bin/${name}
";
}