Make Niv working in restricted evaluation mode

This commit is contained in:
Antoine Eiche 2021-05-31 09:48:15 +02:00
parent 3fc047bc64
commit ddafdfbde7

View File

@ -13,9 +13,6 @@ let
pkgs.fetchurl { inherit (spec) url sha256; };
fetch_tarball = pkgs: spec:
if spec.builtin or true then
builtins_fetchTarball { inherit (spec) url sha256; }
else
pkgs.fetchzip { inherit (spec) url sha256; };
fetch_git = spec: