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 {
inherit name src buildInputs;
version = "0.0.0"; version = "0.0.0";
dontUnpack = true; dontUnpack = true;
buildInputs = [
pkgs.python3
];
installPhase = " installPhase = "
mkdir -p $out/bin mkdir -p $out/bin
cp $src $out/bin/${name} cp $src $out/bin/${name}
"; ";
} };
in pkgs.lib.customisation.makeOverridable drv { buildInputs = []; }