prefer pkgs.fetchTarball and pkgs.fetchurl
This commit is contained in:
parent
08a1728622
commit
208c3a4da8
|
@ -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; };
|
||||
|
|
Loading…
Reference in New Issue