diff --git a/support/docs/lib/overlay-doc.nix b/support/docs/lib/overlay-doc.nix index ea6fdd8e..0d917ed0 100644 --- a/support/docs/lib/overlay-doc.nix +++ b/support/docs/lib/overlay-doc.nix @@ -38,14 +38,17 @@ let then lib.removePrefix "/" (lib.removePrefix (toString prefix) (toString decl)) else (toNixpkgsRelative decl) ; - subpath = head (splitString ":" position); - lineno = last (splitString ":" position); url = - if lib.hasPrefix "<%= license["fullName"] %> <% end %> - <% if url && url.strip != "" %> + <% if position && url && url.strip != "" %>
<<%= h_package %>>Declared in:>
<%= position %>