mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 12:50:04 +00:00
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.
24 lines
370 B
Nix
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
|
|
''
|