From e363cffac26b0009972e0e20c1bbb0953473bd86 Mon Sep 17 00:00:00 2001 From: Azure Zanculmarktum Date: Mon, 7 Sep 2020 19:45:53 +0700 Subject: [PATCH] Support flake inputs with type tarball --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nix b/default.nix index a679d27..c047378 100644 --- a/default.nix +++ b/default.nix @@ -40,6 +40,10 @@ let { outPath = builtins.path { path = info.path; }; narHash = info.narHash; } + else if info.type == "tarball" then + { outPath = fetchTarball info.url; + narHash = info.narHash; + } else # FIXME: add Mercurial, tarball inputs. throw "flake input has unsupported input type '${info.type}'";