libdbusmenu: fix substituteInPlace usage

This commit is contained in:
Franz Pletz 2017-08-02 17:48:33 +02:00 committed by Robin Gloster
parent e75b2f03d0
commit e10e0c4707
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -26,8 +26,10 @@ stdenv.mkDerivation rec {
] ++ optional (gtkVersion != null) (if gtkVersion == "2" then gtk2 else gtk3);
postPatch = ''
substituteInPlace {configure,ltmain.sh,m4/libtool.m4} \
--replace /usr/bin/file ${file}/bin/file
for f in {configure,ltmain.sh,m4/libtool.m4}; do
substituteInPlace $f \
--replace /usr/bin/file ${file}/bin/file
done
'';
# https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/libdbusmenu