From d8cda7c3dc8e0fa38694ccdd8b93786ffad72deb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 6 May 2005 14:43:14 +0000 Subject: [PATCH] * Mac OS X (and POSIX) doesn't have readlink. --- tests/nix-pull.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nix-pull.sh b/tests/nix-pull.sh index b4a5e33711..4f53113bc8 100644 --- a/tests/nix-pull.sh +++ b/tests/nix-pull.sh @@ -34,4 +34,4 @@ cat $outPath/input-2/bar # Check that the derivers are set properly. test $($TOP/src/nix-store/nix-store -q --deriver "$outPath") = "$drvPath" -$TOP/src/nix-store/nix-store -q --deriver $(readlink $outPath/input-2) | grep -q -- "-input-2.drv" +$TOP/src/nix-store/nix-store -q --deriver $(/bin/ls -l $outPath/input-2 | sed 's/.*->\ //') | grep -q -- "-input-2.drv"