1
0
Fork 0
nur/README.nu

8 lines
367 B
Plaintext
Raw Normal View History

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