libindicator: fix substituteInPlace usage

This commit is contained in:
Willi Butz 2017-08-02 18:16:23 +02:00 committed by Robin Gloster
parent c806501a6d
commit d10d76f487
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -22,8 +22,10 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace configure \
--replace 'LIBINDICATOR_LIBS+="$LIBM"' 'LIBINDICATOR_LIBS+=" $LIBM"'
substituteInPlace {build-aux/ltmain.sh,configure,m4/libtool.m4} \
--replace /usr/bin/file ${file}/bin/file
for f in {build-aux/ltmain.sh,configure,m4/libtool.m4}; do
substituteInPlace $f\
--replace /usr/bin/file ${file}/bin/file
done
'';
configureFlags = [