all repos — searchix @ f8f4f748c8528b7fe245d1e1f1d55f78b78ede39

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: list package platforms in detail view
Alan Pearce alan@alanpearce.eu
Wed, 26 Mar 2025 21:31:38 +0100
commit

f8f4f748c8528b7fe245d1e1f1d55f78b78ede39

parent

a04cc4acc1d5da1f2e351289b1a8f08cb1503c4d

1 files changed, 12 insertions(+), 0 deletions(-)

jump to
M internal/components/packageDetail.gointernal/components/packageDetail.go
@@ -105,6 +105,18 @@ ), 					),
 				}),
 			),
+			g.If(len(pkg.Platforms) > 0,
+				g.Group([]g.Node{
+					Dt(g.Text("Platforms")),
+					Dd(
+						Ul(
+							g.Map(pkg.Platforms, func(plat string) g.Node {
+								return Li(g.Text(plat))
+							}),
+						),
+					),
+				}),
+			),
 			g.If(pkg.Definition != "",
 				g.Group([]g.Node{
 					Dt(g.Text("Defined")),