Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
# Test that the flake-registry.json format is sorted & valid
# Test that the flake-registry.json format is valid
set -euo pipefail

cd "$(dirname "$0")"

# Ensure current flake-registry.json file is sorted.
nix registry list --tarball-ttl 0 --flake-registry "$PWD/flake-registry.json" \
| grep -- '^global ' | LC_ALL=C sort -u -c
nix registry list --tarball-ttl 0 --flake-registry "$PWD/flake-registry.json" |
grep -- '^global '
Comment on lines -8 to +9

@xokdvium xokdvium Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sortedness requirement is kinda incorrect, the flake registry is order-dependent and "disorder" is required for the channel tarball redirects to function correctly (the exact matches should come first before the catch-all nixpkgs).


nix run --flake-registry "$PWD/flake-registry.json" nixpkgs#hello
83 changes: 83 additions & 0 deletions flake-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,89 @@
"type": "github"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect",
"ref": "nixpkgs-unstable"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect",
"ref": "nixos-unstable"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect",
"ref": "nixos-unstable-small"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect",
"ref": "nixos-26.05"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-26.05/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect",
"ref": "nixos-26.05-small"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-26.05-small/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
"type": "indirect",
"ref": "nixpkgs-26.05-darwin"
},
"exact": true,
"to": {
"type": "tarball",
"url": "https://channels.nixos.org/nixpkgs-26.05-darwin/nixexprs.tar.xz"
}
},
{
"from": {
"id": "nixpkgs",
Expand Down
Loading