Add global lib relativePath

This commit is contained in:
SebastianStork 2025-11-07 21:03:19 +01:00
parent 39bd59c8ee
commit 56f11d4ade
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
4 changed files with 19 additions and 9 deletions

View file

@ -1,8 +1,8 @@
{
config,
options,
self,
lib,
lib',
...
}:
let
@ -28,10 +28,10 @@ in
protocol:
options.meta.ports.${protocol}.list.definitionsWithLocations
|> lib.concatMap (
entry:
entry.value
{ file, value }:
value
|> lib.map (port: {
file = entry.file |> lib.removePrefix "${self}/";
file = lib'.relativePath file;
inherit port;
})
)