mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-21 23:51:00 +00:00
Generate JSON build description
This commit is contained in:
parent
935670690f
commit
ecd76977ea
1 changed files with 6 additions and 3 deletions
|
@ -88,9 +88,11 @@ let
|
||||||
builds = builtins.sort cmpDate (map (x: { version = x; builds = builtins.getAttr x builds_per_version; }) versions_commit);
|
builds = builtins.sort cmpDate (map (x: { version = x; builds = builtins.getAttr x builds_per_version; }) versions_commit);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
pkgs.writeText "index.html" ''
|
{
|
||||||
|
json = pkgs.writeTextDir "share/_releases.json" (builtins.toJSON sorted_builds);
|
||||||
|
|
||||||
|
html = pkgs.writeTextDir "share/_releases.html" ''
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -143,4 +145,5 @@ in
|
||||||
''))}
|
''))}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
''
|
'';
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue