mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
* Do use readlink if available.
svn path=/nixpkgs/trunk/; revision=5252
This commit is contained in:
parent
75ee1e1704
commit
b8fd332dd8
@ -53,7 +53,8 @@ if test -z "$hash"; then
|
||||
fi
|
||||
|
||||
# Create a Nix expression that does a fetchsvn.
|
||||
nixExpr=$(dirname $0)/../../top-level/all-packages.nix
|
||||
scriptDir=$(dirname $(readlink -f $0 2> /dev/null || echo $0))
|
||||
nixExpr=$scriptDir/../../top-level/all-packages.nix
|
||||
storeExpr=$( \
|
||||
echo "(import $nixExpr {}).fetchsvn {url=\"$url\"; rev=\"$rev\"; md5=\"$hash\";}" \
|
||||
| nix-instantiate -)
|
||||
|
Loading…
Reference in New Issue
Block a user