From 610c7ea6af994ac2591ef234dc3f6b33943907e0 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 5 Feb 2022 19:08:10 +0100 Subject: Generate and upload a JSON result --- nix/build_index.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nix/build_index.nix') diff --git a/nix/build_index.nix b/nix/build_index.nix index a0313a9e..4625e3ae 100644 --- a/nix/build_index.nix +++ b/nix/build_index.nix @@ -88,10 +88,8 @@ let builds = builtins.sort cmpDate (map (x: { version = x; builds = builtins.getAttr x builds_per_version; }) versions_commit); } ]; -in -{ - json = pkgs.writeTextDir "share/_releases.json" (builtins.toJSON sorted_builds); + json = pkgs.writeTextDir "share/_releases.json" (builtins.toJSON sorted_builds); html = pkgs.writeTextDir "share/_releases.html" '' @@ -146,4 +144,8 @@ in ''; -} +in + pkgs.symlinkJoin { + name = "releases"; + paths = [ json html ]; + } -- cgit v1.2.3