Skip to content

Commit a04e627

Browse files
committed
switch to flakehub
1 parent 749fc5b commit a04e627

File tree

3 files changed

+26
-40
lines changed

3 files changed

+26
-40
lines changed

flake.lock

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

flake.nix

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
description = "Magic Nix Cache";
33

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

7-
flake-compat = {
8-
url = "github:edolstra/flake-compat";
9-
flake = false;
10-
};
7+
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
118
};
129

1310
outputs = { self, nixpkgs, ... }:

shell.nix

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +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-
in
15-
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)