mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
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 {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user