Format and tabulate source references

This commit is contained in:
Tim Van Baak 2024-07-08 12:15:41 -07:00
parent 0670b65fff
commit 185a541c59
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,11 @@
drvsNoMain = filter nobodyMaintains drvs; drvsNoMain = filter nobodyMaintains drvs;
drvNamesList = stringJoin (drv: "${drv.name} ${drv.meta.position}") drvsNoMain; drvNamesList = stringJoin (drv: "${drv.name} ${drv.meta.position}") drvsNoMain;
uniqNames = runCommandLocal "no-maintainers.txt" {} '' uniqNames = runCommandLocal "no-maintainers.txt" {} ''
<${drvNamesList} sort -u > $out <${drvNamesList} sort -u \
| sed 's/\/nix\/store\/[^/]*/https:\/\/github.com\/NixOS\/nixpkgs\/blob\/master/' \
| sed 's/.nix:\(.*\)$/#L\1/' \
| ${pkgs.unixtools.column}/bin/column -t \
> $out
''; '';
in uniqNames; in uniqNames;
}; };