aboutsummaryrefslogtreecommitdiff
path: root/nix/build_index.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/build_index.nix')
-rw-r--r--nix/build_index.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/nix/build_index.nix b/nix/build_index.nix
index 5107324e..8f5885b3 100644
--- a/nix/build_index.nix
+++ b/nix/build_index.nix
@@ -88,9 +88,11 @@ let
builds = builtins.sort cmpDate (map (x: { version = x; builds = builtins.getAttr x builds_per_version; }) versions_commit);
}
];
-
in
- pkgs.writeText "index.html" ''
+{
+ json = pkgs.writeTextDir "share/_releases.json" (builtins.toJSON sorted_builds);
+
+ html = pkgs.writeTextDir "share/_releases.html" ''
<!doctype html>
<html>
<head>
@@ -143,4 +145,5 @@ in
''))}
</body>
</html>
-''
+'';
+}