Skip to content

Commit

Permalink
Provide backup tarball URL in shell.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Graham Christensen <[email protected]>
  • Loading branch information
lucperkins and grahamc authored Oct 16, 2023
1 parent 5f70849 commit 1ac3777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = lock.nodes.flake-compat.locked.url;
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 1ac3777

Please sign in to comment.