From 0478354477c67de6df65ca1c070deb2b200d30ea Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 2 Nov 2021 13:07:42 +0100 Subject: [PATCH] versioning: move variable The variable is an internal implementation detail. Move it close to where it's used. --- modules/versioning.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/versioning.nix b/modules/versioning.nix index fd61035..5fd03d6 100644 --- a/modules/versioning.nix +++ b/modules/versioning.nix @@ -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);