|
|
|
@ -28,17 +28,21 @@ stdenv.mkDerivation rec { |
|
|
|
|
buildInputs = optional (contains_any scripts perlscripts) perl; |
|
|
|
|
nativeBuildInputs = [ makeWrapper ]; |
|
|
|
|
|
|
|
|
|
postFixup = '' |
|
|
|
|
postFixup = optionalString (elem "bandwidth" scripts) '' |
|
|
|
|
wrapProgram $out/libexec/i3blocks/bandwidth \ |
|
|
|
|
--prefix PATH : ${makeBinPath (optional (elem "bandwidth" scripts) iproute2)} |
|
|
|
|
--prefix PATH : ${makeBinPath [ iproute2 ]} |
|
|
|
|
'' + optionalString (elem "battery" scripts) '' |
|
|
|
|
wrapProgram $out/libexec/i3blocks/battery \ |
|
|
|
|
--prefix PATH : ${makeBinPath (optional (elem "battery" scripts) acpi)} |
|
|
|
|
--prefix PATH : ${makeBinPath [ acpi ]} |
|
|
|
|
'' + optionalString (elem "cpu_usage" scripts) '' |
|
|
|
|
wrapProgram $out/libexec/i3blocks/cpu_usage \ |
|
|
|
|
--prefix PATH : ${makeBinPath (optional (elem "cpu_usage" scripts) sysstat)} |
|
|
|
|
--prefix PATH : ${makeBinPath [ sysstat ]} |
|
|
|
|
'' + optionalString (elem "iface" scripts) '' |
|
|
|
|
wrapProgram $out/libexec/i3blocks/iface \ |
|
|
|
|
--prefix PATH : ${makeBinPath (optional (elem "iface" scripts) iproute2)} |
|
|
|
|
--prefix PATH : ${makeBinPath [ iproute2 ]} |
|
|
|
|
'' + optionalString (elem "volume" scripts) '' |
|
|
|
|
wrapProgram $out/libexec/i3blocks/volume \ |
|
|
|
|
--prefix PATH : ${makeBinPath (optional (elem "volume" scripts) alsa-utils)} |
|
|
|
|
--prefix PATH : ${makeBinPath [ alsa-utils ]} |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|