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:
parent
23b7a173da
commit
98797efd23
|
@ -18,7 +18,8 @@ Afterwards, create a `default.nix` file containing the following:
|
||||||
(
|
(
|
||||||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
|
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
|
||||||
fetchTarball {
|
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;
|
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue