Files
Ismaël Bouya 892ae6ab82 Fix: bitlbee-plugins buildInputs should not be nested
plugins is a list, so it should not get nested in the buildInputs arrays.

Ref: warning shown at build time:
Dependency of package 'bitlbee-plugins' uses a nested list in attribute 'buildInputs'. This is deprecated as of Nixpkgs release 26.05, and support will be removed in a future nixpkgs release.
2026-05-27 10:44:43 +02:00

24 lines
370 B
Nix

{
lib,
runCommandLocal,
bitlbee,
}:
plugins:
runCommandLocal "bitlbee-plugins"
{
inherit plugins;
buildInputs = [
bitlbee
]
++ plugins;
}
''
mkdir -p $out/lib/bitlbee
for plugin in $plugins; do
for thing in $(ls $plugin/lib/bitlbee); do
ln -s $plugin/lib/bitlbee/$thing $out/lib/bitlbee/
done
done
''