Merge pull request #134899 from Stunkymonkey/bitlbee-plugins-phases
bitlbee-plugins: use runCommandLocal instead of mkDerivation
This commit is contained in:
commit
0bc8edad70
1 changed files with 10 additions and 15 deletions
|
@ -1,20 +1,15 @@
|
|||
{ lib, stdenv, bitlbee }:
|
||||
{ lib, runCommandLocal, bitlbee }:
|
||||
|
||||
with lib;
|
||||
|
||||
plugins:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit bitlbee plugins;
|
||||
name = "bitlbee-plugins";
|
||||
plugins: runCommandLocal "bitlbee-plugins" {
|
||||
inherit 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
|
||||
} ''
|
||||
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
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue