From 0d1bd43f3959fe27ade1a3ccc83f27261de72114 Mon Sep 17 00:00:00 2001 From: Matthew Kenigsberg <40775676+mkenigs@users.noreply.github.com> Date: Wed, 1 Mar 2023 02:40:57 -0700 Subject: [PATCH] chore: fix tests (#4) Add missed test file for validating registry de-/serialization. --- crates/runix/test/registry.test.json | 124 +++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 crates/runix/test/registry.test.json diff --git a/crates/runix/test/registry.test.json b/crates/runix/test/registry.test.json new file mode 100644 index 0000000..6b38eeb --- /dev/null +++ b/crates/runix/test/registry.test.json @@ -0,0 +1,124 @@ +{ + "flakes": [ + { + "from": { + "id": "examples", + "type": "indirect" + }, + "to": { + "owner": "flox-examples", + "repo": "floxpkgs", + "type": "github" + } + }, + { + "from": { + "id": "flox", + "type": "indirect" + }, + "to": { + "owner": "flox", + "ref": "master", + "repo": "floxpkgs", + "type": "github" + } + }, + { + "from": { + "id": "local", + "type": "indirect" + }, + "to": { + "path": "/var/folders/fb/f1xb57354q79t_jpw5_h79cw0000gq/T/tmp.eq7xa1aY4U/hello-python", + "type": "path" + } + }, + { + "from": { + "id": "nixpkgs", + "type": "indirect" + }, + "to": { + "owner": "flox", + "ref": "stable", + "repo": "nixpkgs", + "type": "github" + } + }, + { + "from": { + "id": "nixpkgs-flox", + "type": "indirect" + }, + "to": { + "owner": "flox", + "ref": "master", + "repo": "nixpkgs-flox", + "type": "github" + } + }, + { + "from": { + "id": "ysndr", + "type": "indirect" + }, + "to": { + "owner": "ysndr", + "ref": "master", + "repo": "floxpkgs", + "type": "github" + } + }, + { + "from": { + "id": "nixpkgs-stable", + "type": "indirect" + }, + "to": { + "owner": "flox", + "ref": "stable", + "repo": "nixpkgs", + "type": "github" + } + }, + { + "from": { + "id": "nixpkgs-staging", + "type": "indirect" + }, + "to": { + "owner": "flox", + "ref": "staging", + "repo": "nixpkgs", + "type": "github" + } + }, + { + "from": { + "id": "nixpkgs-unstable", + "type": "indirect" + }, + "to": { + "owner": "flox", + "ref": "unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + { + "exact": true, + "from": { + "id": "nixpkgs", + "type": "indirect" + }, + "to": { + "lastModified": 1666570118, + "narHash": "sha256-MTXmIYowHM1wyIYyqPdBLia5SjGnxETv0YkIbDsbkx4=", + "path": "/nix/store/083m43hjhry94cvfmqdv7kjpvsl3zzvi-source", + "rev": "1e684b371cf05300bc2b432f958f285855bac8fb", + "type": "path" + } + } + ], + "version": 2 +}