diff --git a/lib.nix b/lib.nix index fa592c2..bd31e28 100644 --- a/lib.nix +++ b/lib.nix @@ -111,7 +111,7 @@ rec ref = lock.branch; } // lib.optionalAttrs (lock ? tag) { ref = lock.tag; - } // lib.optionalAttrs gitAllRefs { + } // lib.optionalAttrs ((lib.versionAtLeast builtins.nixVersion "2.4") && (gitAllRefs || lock ? rev)) { allRefs = true; } // lib.optionalAttrs gitSubmodules { submodules = true;