unstableGitUpdater: fix inaccurate comments

It used to use src.url, but when that was changed the comments weren't
updated.

Fixes: 7aae279ad9 ("unstableGitUpdater: fix updating fetchzip-based sources")
This commit is contained in:
Alyssa Ross 2022-09-04 08:29:44 +00:00
parent b727af8064
commit 88441f3e44

View File

@ -8,7 +8,7 @@
# This is an updater for unstable packages that should always use the latest # This is an updater for unstable packages that should always use the latest
# commit. # commit.
{ url ? null # The git url, if empty it will be set to src.url { url ? null # The git url, if empty it will be set to src.gitRepoUrl
, branch ? null , branch ? null
, stableVersion ? false # Use version format according to RFC 107 (i.e. LAST_TAG+date=YYYY-MM-DD) , stableVersion ? false # Use version format according to RFC 107 (i.e. LAST_TAG+date=YYYY-MM-DD)
, tagPrefix ? "" # strip this prefix from a tag name when using stable version , tagPrefix ? "" # strip this prefix from a tag name when using stable version
@ -46,7 +46,7 @@ let
esac esac
done done
# By default we set url to src.url # By default we set url to src.gitRepoUrl
if [[ -z "$url" ]]; then if [[ -z "$url" ]]; then
url="$(${nix}/bin/nix-instantiate $systemArg --eval -E \ url="$(${nix}/bin/nix-instantiate $systemArg --eval -E \
"with import ./. {}; $UPDATE_NIX_ATTR_PATH.src.gitRepoUrl" \ "with import ./. {}; $UPDATE_NIX_ATTR_PATH.src.gitRepoUrl" \