Skip to content

Commit 7ae5ae6

Browse files
committed
Drop "flake = false" and suggest flakehub
1 parent e1262c7 commit 7ae5ae6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
To use, add the following to your `flake.nix`:
66

77
```nix
8-
inputs.flake-compat = {
9-
url = "github:edolstra/flake-compat";
10-
flake = false;
11-
};
8+
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
129
```
1310

1411
Afterwards, create a `default.nix` file containing the following:
@@ -18,7 +15,7 @@ Afterwards, create a `default.nix` file containing the following:
1815
(
1916
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
2017
fetchTarball {
21-
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
18+
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
2219
sha256 = lock.nodes.flake-compat.locked.narHash;
2320
}
2421
)

0 commit comments

Comments
 (0)