From c8cc0de8cac5e8662a73b785781ef6adcfd033fc Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 24 Oct 2023 16:45:48 +0300 Subject: [PATCH] docs: fix for jovian-hardware-survey --- support/docs/lib/overlay-doc.nix | 13 ++++++++----- support/docs/template/package.erb | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) 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 %>