prefer pkgs.fetchTarball and pkgs.fetchurl

This commit is contained in:
Cadey Ratio 2020-03-12 05:16:28 -04:00
parent 08a1728622
commit 208c3a4da8
1 changed files with 2 additions and 2 deletions

View File

@ -7,13 +7,13 @@ let
#
fetch_file = pkgs: spec:
if spec.builtin or true then
if spec.builtin or false then
builtins_fetchurl { inherit (spec) url sha256; }
else
pkgs.fetchurl { inherit (spec) url sha256; };
fetch_tarball = pkgs: spec:
if spec.builtin or true then
if spec.builtin or false then
builtins_fetchTarball { inherit (spec) url sha256; }
else
pkgs.fetchzip { inherit (spec) url sha256; };