diff --git a/README.md b/README.md index 8ff3eb3..fd44f86 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ # jolheiser NUR -## Packages - -- [tmpl](https://git.jojodev.com/jolheiser/tmpl) -- [prospect-mail](https://github.com/jolheiser/prospect-mail) -- [imp](https://git.jojodev.com/jolheiser/imp) \ No newline at end of file +|Package|Version| +|-------|-------| +|[git-age](https://git.jojodev.com/jolheiser/git-age)|`0.0.1`| +|[gomodinit](https://git.jojodev.com/jolheiser/gomodinit)|`0.1.1`| +|[imp](https://git.jojodev.com/jolheiser/imp)|`0.0.8`| +|[kv](https://git.jojodev.com/jolheiser/kv)|`0.0.4`| +|[prospect-mail](https://github.com/julian-alarcon/prospect-mail)|`0.5.2`| +|[tclip](https://github.com/tailscale-dev/tclip)|`2c99626eb040cb9a54cdf4015c5d2bfd0a7be038`| +|[tmpl](https://git.jojodev.com/jolheiser/tmpl)|`0.4.0`| diff --git a/README.nu b/README.nu new file mode 100644 index 0000000..4288f36 --- /dev/null +++ b/README.nu @@ -0,0 +1,13 @@ +let re = '(?s)pname = "(?P[^"]+)".+version = "(?P[^"]+)".+homepage = "(?P[^"]+)"' +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" ) +' diff --git a/justfile b/justfile index 315cccb..f24e491 100644 --- a/justfile +++ b/justfile @@ -2,6 +2,9 @@ default: @just --list +readme: + @nu -c 'nu README.nu | save --force README.md' + build package: @nix-build -E 'with import { }; callPackage ./pkgs/{{package}} { }' diff --git a/pkgs/prospect-mail/default.nix b/pkgs/prospect-mail/default.nix index c2f4140..657188f 100644 --- a/pkgs/prospect-mail/default.nix +++ b/pkgs/prospect-mail/default.nix @@ -102,4 +102,10 @@ stdenv.mkDerivation rec { categories = ["Network" "Email"]; }) ]; + + meta = with lib; { + description = "Prospect mail, Outlook client for linux"; + homepage = "https://github.com/julian-alarcon/prospect-mail"; + license = licenses.mit; + }; }