Only replace actual java commands with the full path

This commit is contained in:
electric-castle 2024-08-29 23:51:23 -07:00
parent 215ea7473f
commit 5d19a9ed86

View File

@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
cp -Rv * $out/share/
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igv.sh
sed -i 's#java#${jdk17}/bin/java#g' $out/share/igv.sh
sed -i 's#\bjava\b#${jdk17}/bin/java#g' $out/share/igv.sh
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igvtools
sed -i 's#java#${jdk17}/bin/java#g' $out/share/igvtools
sed -i 's#\bjava\b#${jdk17}/bin/java#g' $out/share/igvtools
ln -s $out/share/igv.sh $out/bin/igv
ln -s $out/share/igvtools $out/bin/igvtools