1
0
Fork 0

feat: generate readme

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-08-22 20:41:24 -05:00
parent d8f3a23bb9
commit 5f54233f5d
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
4 changed files with 31 additions and 5 deletions

View File

@ -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)
|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`|

13
README.nu 100644
View File

@ -0,0 +1,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" )
'

View File

@ -2,6 +2,9 @@
default:
@just --list
readme:
@nu -c 'nu README.nu | save --force README.md'
build package:
@nix-build -E 'with import <nixpkgs> { }; callPackage ./pkgs/{{package}} { }'

View File

@ -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;
};
}