ghc-packages: Darwin's native readlink doesn't support -f

svn path=/nixpkgs/trunk/; revision=33366
This commit is contained in:
Shea Levy 2012-03-23 03:01:58 +00:00
parent c690fb832b
commit 6aa06a6699

View File

@ -1,4 +1,4 @@
{stdenv, ghc, makeWrapper}:
{stdenv, ghc, makeWrapper, coreutils}:
stdenv.mkDerivation {
name = "ghc-${ghc.version}-wrapper";
@ -31,7 +31,7 @@ stdenv.mkDerivation {
case "\$arg" in
-package-conf) ;;
*)
CANONICALIZED="\$(readlink -f "\$arg")"
CANONICALIZED="\$(${stdenv.lib.optionalString stdenv.isDarwin "${coreutils}/bin/"}}readlink -f "\$arg")"
GHC_PACKAGES_HASH["\$CANONICALIZED"]= ;;
esac
done