aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-05 14:15:22 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-05 14:15:22 +0100
commit38bb74bfd8d28bcf4eb3eea5ece5c50a34f676a9 (patch)
tree9cf7fba1f929d468f28b737d62dff5a2a3a755e9
parentbb307bd1840b224ece568dfa126adf6f54bcb927 (diff)
downloadgarage-json-build-add-urls.tar.gz
garage-json-build-add-urls.zip
Add URL field to JSON buildsjson-build-add-urls
-rw-r--r--nix/build_index.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/build_index.nix b/nix/build_index.nix
index 8f5885b3..a0313a9e 100644
--- a/nix/build_index.nix
+++ b/nix/build_index.nix
@@ -55,7 +55,7 @@ let
parsed = map (entry: listToSet keys entry) elems;
subkeys = ["root" "version" "platform" "binary" ];
- builds = map (entry: entry // listToSet subkeys (lib.splitString "/" entry.path)) parsed;
+ builds = map (entry: entry // listToSet subkeys (lib.splitString "/" entry.path) // { url = "https://garagehq.deuxfleurs.fr/" + entry.path; }) parsed;
/* Aggregation */
builds_per_version = lib.foldl (acc: v: acc // { ${v.version} = if builtins.hasAttr v.version acc then acc.${v.version} ++ [ v ] else [ v ]; }) {} builds;