parent
5194199d25
commit
20e5b7dac4
5 changed files with 34 additions and 22 deletions
apps/gen-docs
13
apps/gen-docs/getPackageMeta.nix
Normal file
13
apps/gen-docs/getPackageMeta.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
x: let
|
||||
inherit (builtins) currentSystem mapAttrs removeAttrs replaceStrings;
|
||||
|
||||
trimNewlines = s: replaceStrings ["\n"] [" "] s;
|
||||
packages = removeAttrs x.${currentSystem} ["default"];
|
||||
in {
|
||||
attrs =
|
||||
mapAttrs (_: v: {
|
||||
desc = trimNewlines (v.meta.description or "");
|
||||
homepage = v.meta.homepage or "";
|
||||
})
|
||||
packages;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue