makeself: fix patch to find the makeself header properly

This commit is contained in:
Dan Peebles 2016-05-04 16:39:24 +00:00
parent 1f84e43239
commit 1eab39cdce

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
mv makeself.sh $out/bin/makeself
mv makeself.1 $out/share/man/man1/
mv makeself-header.sh $out/share/${name}
sed -e 's|HEADER=`dirname $0`/makeself-header.sh|HEADER=`dirname $0`/../share/${name}/makeself-header.sh|' -i $out/bin/makeself
sed -e 's|HEADER=`dirname "$0"`/makeself-header.sh|HEADER=`dirname $0`/../share/${name}/makeself-header.sh|' -i $out/bin/makeself
'';
meta = with stdenv.lib; {
homepage = http://megastep.org/makeself;