Skip to content

Commit

Permalink
Add coreutils dependency to ant launcher script
Browse files Browse the repository at this point in the history
Closes #4106.
  • Loading branch information
copumpkin authored and Fuuzetsu committed Sep 17, 2014
1 parent b079eef commit 44ca1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/build-managers/apache-ant/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ fetchurl, stdenv, makeWrapper }:
{ fetchurl, stdenv, coreutils, makeWrapper }:

let version = "1.9.4"; in

Expand Down Expand Up @@ -43,7 +43,7 @@ stdenv.mkDerivation {
if [ -z "\$JAVA_HOME" ]; then
for i in javac java gij; do
if p="\$(type -p \$i)"; then
export JAVA_HOME="\$(dirname \$(dirname \$(readlink -f \$p)))"
export JAVA_HOME="\$(${coreutils}/bin/dirname \$(${coreutils}/bin/dirname \$(${coreutils}/bin/readlink -f \$p)))"
break
fi
done
Expand Down

0 comments on commit 44ca1a7

Please sign in to comment.