Merge pull request #134899 from Stunkymonkey/bitlbee-plugins-phases

bitlbee-plugins: use runCommandLocal instead of mkDerivation
This commit is contained in:
figsoda 2021-10-19 16:05:43 -04:00 committed by GitHub
commit 0bc8edad70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
''