From 241db1e1f54073fd6fb40e886cca352b9dbc4e72 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 5 Feb 2022 14:15:22 +0100 Subject: Add URL field to JSON builds --- nix/build_index.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3