mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
package extracted logs
This commit is contained in:
parent
20464a8f68
commit
f14be14a83
6 changed files with 83 additions and 4 deletions
|
|
@ -1,3 +1,20 @@
|
|||
final: prev: {
|
||||
final: prev: let
|
||||
inherit (builtins) mapAttrs attrValues map;
|
||||
inherit (prev) symlinkJoin;
|
||||
inherit (prev.lib) importJSON;
|
||||
inherit (prev.lib.lists) flatten;
|
||||
packages = prev.lib.traceValSeq (importJSON ./versions.json);
|
||||
|
||||
loggingFor = name:
|
||||
mapAttrs (major: data: (final.callPackage ./extracted-logs.nix {
|
||||
inherit (data) url sha256 version;
|
||||
inherit name major;
|
||||
}));
|
||||
in {
|
||||
logging-extractor = final.callPackage ./logging-extractor.nix {};
|
||||
extracted-logs-parts = mapAttrs loggingFor packages;
|
||||
extracted-logs = symlinkJoin {
|
||||
name = "extracted-logs";
|
||||
paths = flatten (map attrValues (attrValues final.extracted-logs-parts));
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue