Skip to content

Commit

Permalink
Drop "flake = false" and suggest flakehub
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 2, 2023
1 parent e1262c7 commit 7ae5ae6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
To use, add the following to your `flake.nix`:

```nix
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
```

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

0 comments on commit 7ae5ae6

Please sign in to comment.