let pkgs = glob pkgs/* | each { |it| open --raw $"($it)/default.nix" | parse --regex '(?s)pname = "(?P[^"]+)".+version = "(?P[^"]+)".+homepage = "(?P[^"]+)"' } $'# jolheiser NUR |Package|Version| |-------|-------| ($pkgs | each { |it| $"|[($it.name.0)]\(($it.homepage.0)\)|`($it.version.0)`|" } | str join "\n" ) ' | save --force README.md