mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* Do use readlink if available.
svn path=/nixpkgs/trunk/; revision=5252
This commit is contained in:
parent
75ee1e1704
commit
b8fd332dd8
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ if test -z "$hash"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a Nix expression that does a fetchsvn.
|
# 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=$( \
|
storeExpr=$( \
|
||||||
echo "(import $nixExpr {}).fetchsvn {url=\"$url\"; rev=\"$rev\"; md5=\"$hash\";}" \
|
echo "(import $nixExpr {}).fetchsvn {url=\"$url\"; rev=\"$rev\"; md5=\"$hash\";}" \
|
||||||
| nix-instantiate -)
|
| nix-instantiate -)
|
||||||
|
|
Loading…
Reference in a new issue