versioning: move variable
The variable is an internal implementation detail. Move it close to where it's used.
This commit is contained in:
parent
8616254d63
commit
0478354477
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,6 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
version = config.nix-bitcoin.configVersion;
|
|
||||||
|
|
||||||
# Sorted by increasing version numbers
|
# Sorted by increasing version numbers
|
||||||
changes = [
|
changes = [
|
||||||
{
|
{
|
||||||
|
|
@ -197,6 +195,8 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
version = config.nix-bitcoin.configVersion;
|
||||||
|
|
||||||
incompatibleChanges = optionals
|
incompatibleChanges = optionals
|
||||||
(version != null && versionOlder lastChange)
|
(version != null && versionOlder lastChange)
|
||||||
(builtins.filter (change: versionOlder change && (change.condition or true)) changes);
|
(builtins.filter (change: versionOlder change && (change.condition or true)) changes);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue