diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-05-03 04:17:56 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-05-03 04:34:45 +0200 |
commit | a8293a0848b4632f85e2352347ff669b4ee5a2de (patch) | |
tree | 72b90d6a2d00c2f4805604a83d818bf3bf250ad9 /pkgs | |
parent | b85cbd96c29ad36d16bb0547e31a34e3c1f688d2 (diff) |
common-updater-scripts: fix fallback version detection
parseDrvName returns a set containing version attribute, not our customizable key.
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/common-updater/scripts/update-source-version | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/common-updater/scripts/update-source-version b/pkgs/common-updater/scripts/update-source-version index 75433fe4c596..2d0c16aa2f45 100755 --- a/pkgs/common-updater/scripts/update-source-version +++ b/pkgs/common-updater/scripts/update-source-version @@ -97,7 +97,7 @@ if [ -z "$oldUrl" ]; then fi drvName=$(nix-instantiate $systemArg --eval -E "with import ./. {}; (builtins.parseDrvName $attr.name).name" | tr -d '"') -oldVersion=$(nix-instantiate $systemArg --eval -E "with import ./. {}; $attr.${versionKey} or (builtins.parseDrvName $attr.name).${versionKey}" | tr -d '"') +oldVersion=$(nix-instantiate $systemArg --eval -E "with import ./. {}; $attr.${versionKey} or (builtins.parseDrvName $attr.name).version" | tr -d '"') if [ -z "$drvName" -o -z "$oldVersion" ]; then die "Couldn't evaluate name and version from '$attr.name'!" |