mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Only replace actual java commands with the full path
This commit is contained in:
parent
215ea7473f
commit
5d19a9ed86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user