Skip to content

Commit

Permalink
README: add number of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
42LoCo42 committed Oct 30, 2024
1 parent bdfd429 commit 4f2bf2a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A personal collection of unusual things
* substituter: `https://attic.eleonora.gay/default`
* public key: `default:3FYh8sZV8gWa7Jc5jlP7gZFK7pt3kaHRiV70ySaQ42g=`

## Packages
## 39 Packages

| Name | Description | Homepage |
|------|-------------|----------|
Expand Down Expand Up @@ -48,3 +48,4 @@ A personal collection of unusual things
|`vencloud`|Vencord API|https://github.com/Vencord/Vencloud|
|`vwifi`|Simulator of WiFi (802.11) interfaces to communicate between several Virtual Machines|https://github.com/Raizo62/vwifi|
|`wayland-shell`|Small-scale replacement of the GNOME Shell|https://github.com/nilsherzig/wayland-shell|

2 changes: 1 addition & 1 deletion README.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A personal collection of unusual things
* substituter: `https://attic.eleonora.gay/default`
* public key: `default:3FYh8sZV8gWa7Jc5jlP7gZFK7pt3kaHRiV70ySaQ42g=`

## Packages
## @NUM@ Packages

| Name | Description | Homepage |
|------|-------------|----------|
21 changes: 15 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,21 @@
readme = pipe self.packages.${pkgs.system} [
(mapAttrsToList (name: p:
"|`${name}`|${p.meta.description or ""}|${p.meta.homepage or ""}|"))
(builtins.concatStringsSep "\n")
(s: pkgs.writeText "readme"
(builtins.readFile ./README.md.in + s + "\n"))
(s: pkgs.writeShellScriptBin "readme" ''
install -m644 ${s} README.md
'')
(x: pipe x [
(builtins.concatStringsSep "\n")
(s: pipe ./README.md.in [
builtins.readFile
(builtins.replaceStrings
[ "@NUM@" ]
[ (toString (builtins.length x)) ])
(x: x + s + "\n")
])
(s: pkgs.writeShellScriptBin "readme" ''
cat <<\EOF > README.md
${s}
EOF
'')
])
];

matrix = pkgs.writeShellApplication {
Expand Down

0 comments on commit 4f2bf2a

Please sign in to comment.