diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-02-05 19:08:10 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-02-05 22:09:43 +0100 |
commit | 6f7ef11537115aa2b837a2c5dcc29d1de9b31ec8 (patch) | |
tree | 7972b18322f60a9baa37e64b4022fd998e1d3168 /nix | |
parent | 241db1e1f54073fd6fb40e886cca352b9dbc4e72 (diff) | |
download | garage-6f7ef11537115aa2b837a2c5dcc29d1de9b31ec8.tar.gz garage-6f7ef11537115aa2b837a2c5dcc29d1de9b31ec8.zip |
Generate and upload a JSON result
Diffstat (limited to 'nix')
-rw-r--r-- | nix/build_index.nix | 10 |
1 files changed, 6 insertions, 4 deletions
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" '' <!doctype html> <html> @@ -146,4 +144,8 @@ in </body> </html> ''; -} +in + pkgs.symlinkJoin { + name = "releases"; + paths = [ json html ]; + } |