Unverified Commit 531cbe05 authored by Matt Sturgeon's avatar Matt Sturgeon Committed by GitHub
Browse files

trivial-builders: fix evaluation when entries is empty (#490790)

parents 38f36dd2 0fb0ae35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ rec {
        # This is the best we can do since the other attrs are either defined here, or curried values that
        # we cannot extract a position from
        pos =
          if lib.isAttrs entries then
          if (lib.isAttrs entries) && (entries != { }) then
            builtins.unsafeGetAttrPos (builtins.head (builtins.attrNames entries)) entries
          else
            null;