nixpkgs/pkgs/applications/networking/instant-messengers/bitlbee/plugins.nix

21 lines
410 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, bitlbee }:
2015-09-08 20:15:41 +01:00
2021-01-15 05:42:41 +00:00
with lib;
2015-09-08 20:15:41 +01:00
plugins:
stdenv.mkDerivation {
inherit bitlbee plugins;
name = "bitlbee-plugins";
buildInputs = [ bitlbee plugins ];
phases = [ "installPhase" ];
installPhase = ''
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
'';
}