Skip to content

Commit c055fa2

Browse files
committed
Mechanical migration to FlakeHub
1 parent 8f7cfe5 commit c055fa2

File tree

3 files changed

+37
-52
lines changed

3 files changed

+37
-52
lines changed

flake.lock

+24-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,20 @@
22
description = "GitHub Actions-powered Nix binary cache";
33

44
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5+
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.533189.tar.gz";
66

77
rust-overlay = {
88
url = "github:oxalica/rust-overlay";
99
inputs.nixpkgs.follows = "nixpkgs";
1010
};
1111

1212
crane = {
13-
url = "github:ipetkov/crane";
13+
url = "https://flakehub.com/f/ipetkov/crane/0.14.1.tar.gz";
1414
inputs.nixpkgs.follows = "nixpkgs";
1515
inputs.flake-compat.follows = "flake-compat";
1616
};
1717

18-
flake-compat = {
19-
url = "github:edolstra/flake-compat";
20-
flake = false;
21-
};
18+
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.0.1.tar.gz";
2219
};
2320

2421
outputs = { self, nixpkgs, ... }@inputs:

shell.nix

+10-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
let
2-
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
3-
4-
flake-compat = builtins.fetchTarball {
5-
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
6-
sha256 = lock.nodes.flake-compat.locked.narHash;
7-
};
8-
9-
flake = import flake-compat {
10-
src = ./.;
11-
};
12-
13-
shell = flake.shellNix.default // {
14-
reproduce = flake.defaultNix.outputs.reproduce.${builtins.currentSystem};
15-
};
16-
in
17-
shell
1+
(import
2+
(
3+
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
4+
fetchTarball {
5+
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
6+
sha256 = lock.nodes.flake-compat.locked.narHash;
7+
}
8+
)
9+
{ src = ./.; }
10+
).shellNix

0 commit comments

Comments
 (0)