From 7ae5ae625a69a4c160e7f5e975e8d5c06a7aee92 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 2 Oct 2023 19:16:08 +0200 Subject: [PATCH] Drop "flake = false" and suggest flakehub --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8added0..a444766 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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; } )