Home

nur @cf69cfa8319211e017e1017f6374a3c28629c3a7 - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / README.nu
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
let re = '(?s)pname = "(?P<name>[^"]+)".+version = "(?P<version>[^"]+)".+homepage = "(?P<homepage>[^"]+)"'
let pkgs = glob pkgs/*
          | each { |it| open --raw $"($it)/default.nix" | parse --regex $re }
          | each { |it| { name: $it.name.0, homepage: $it.homepage.0, version: $it.version.0 } }
          | sort-by name
 
 # Output
 $'# jolheiser NUR

|Package|Version|
|-------|-------|
($pkgs | each { |it| $"|[($it.name)]\(($it.homepage)\)|`($it.version)`|" } | str join "\n" )
'