mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
21 lines
412 B
Nix
21 lines
412 B
Nix
{ stdenv, bitlbee }:
|
|
|
|
with stdenv.lib;
|
|
|
|
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
|
|
'';
|
|
}
|