versioning: move variable

The variable is an internal implementation detail. Move it close to
where it's used.
This commit is contained in:
Erik Arvstedt 2021-11-02 13:07:42 +01:00
parent 8616254d63
commit 0478354477
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,6 @@ let
};
};
version = config.nix-bitcoin.configVersion;
# Sorted by increasing version numbers
changes = [
{
@ -197,6 +195,8 @@ let
'';
};
version = config.nix-bitcoin.configVersion;
incompatibleChanges = optionals
(version != null && versionOlder lastChange)
(builtins.filter (change: versionOlder change && (change.condition or true)) changes);