ghc-packages: Darwin's native readlink doesn't support -f
svn path=/nixpkgs/trunk/; revision=33366
This commit is contained in:
parent
c690fb832b
commit
6aa06a6699
@ -1,4 +1,4 @@
|
|||||||
{stdenv, ghc, makeWrapper}:
|
{stdenv, ghc, makeWrapper, coreutils}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ghc-${ghc.version}-wrapper";
|
name = "ghc-${ghc.version}-wrapper";
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||||||
case "\$arg" in
|
case "\$arg" in
|
||||||
-package-conf) ;;
|
-package-conf) ;;
|
||||||
*)
|
*)
|
||||||
CANONICALIZED="\$(readlink -f "\$arg")"
|
CANONICALIZED="\$(${stdenv.lib.optionalString stdenv.isDarwin "${coreutils}/bin/"}}readlink -f "\$arg")"
|
||||||
GHC_PACKAGES_HASH["\$CANONICALIZED"]= ;;
|
GHC_PACKAGES_HASH["\$CANONICALIZED"]= ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user