From f10b647d90d0ad2c66c2b2be64867ca71ef02743 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 2 Sep 2020 14:24:53 -0700 Subject: [PATCH] Support flake inputs with type path --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nix b/default.nix index 2ca2c5d..a679d27 100644 --- a/default.nix +++ b/default.nix @@ -36,6 +36,10 @@ let lastModifiedDate = formatSecondsSinceEpoch info.lastModified; narHash = info.narHash; } + else if info.type == "path" then + { outPath = builtins.path { path = info.path; }; + narHash = info.narHash; + } else # FIXME: add Mercurial, tarball inputs. throw "flake input has unsupported input type '${info.type}'";