From 81cafda306e7257d0d77a20b9bde45049abaa52a Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <edolstra@gmail.com>
Date: Wed, 3 Jun 2020 16:29:04 +0200
Subject: [PATCH] Fix GitHub test

---
 tests/github-flakes.nix | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tests/github-flakes.nix b/tests/github-flakes.nix
index 5d43201bb..0b1f1322f 100644
--- a/tests/github-flakes.nix
+++ b/tests/github-flakes.nix
@@ -26,12 +26,20 @@ let
     name = "registry";
     text = ''
       {
-        "flakes": {
-          "flake:nixpkgs": {
-            "uri": "github:NixOS/nixpkgs"
+        "flakes": [
+          {
+            "from": {
+              "type": "indirect",
+              "id": "nixpkgs"
+            },
+            "to": {
+              "type": "github",
+              "owner": "NixOS",
+              "repo": "nixpkgs"
+            }
           }
-        },
-        "version": 1
+        ],
+        "version": 2
       }
     '';
     destination = "/flake-registry.json";
-- 
GitLab