ppp: fix invalid use of substituteInPlace

substituteInPlace was invoked with multiple targets on the command line, which
is not supported.
This commit is contained in:
Thomas Tuegel 2017-07-19 08:55:28 -05:00
parent c1c314c36f
commit baad413416
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -34,7 +34,9 @@ stdenv.mkDerivation rec {
'';
postFixup = ''
substituteInPlace $out/bin/{pon,poff,plog} --replace "/usr/sbin" "$out/bin"
for tgt in pon poff plog; do
substituteInPlace "$out/bin/$tgt" --replace "/usr/sbin" "$out/bin"
done
'';
meta = {