Change README.md instructions to be slightly more versatile.

Accept other forks also with type="github".

This is enough to be a bit more convenient in a few more
cases once this propagates into new future projects.
This commit is contained in:
mei (ckie) 2023-01-01 23:47:37 +02:00
parent 23b7a173da
commit 98797efd23
Signed by: ckie
GPG key ID: 13E79449C0525215

View file

@ -18,7 +18,8 @@ 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 = with lock.nodes.flake-compat.locked;
"https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)