prefer pkgs.fetchTarball and pkgs.fetchurl
This commit is contained in:
parent
08a1728622
commit
208c3a4da8
|
@ -7,13 +7,13 @@ let
|
||||||
#
|
#
|
||||||
|
|
||||||
fetch_file = pkgs: spec:
|
fetch_file = pkgs: spec:
|
||||||
if spec.builtin or true then
|
if spec.builtin or false then
|
||||||
builtins_fetchurl { inherit (spec) url sha256; }
|
builtins_fetchurl { inherit (spec) url sha256; }
|
||||||
else
|
else
|
||||||
pkgs.fetchurl { inherit (spec) url sha256; };
|
pkgs.fetchurl { inherit (spec) url sha256; };
|
||||||
|
|
||||||
fetch_tarball = pkgs: spec:
|
fetch_tarball = pkgs: spec:
|
||||||
if spec.builtin or true then
|
if spec.builtin or false then
|
||||||
builtins_fetchTarball { inherit (spec) url sha256; }
|
builtins_fetchTarball { inherit (spec) url sha256; }
|
||||||
else
|
else
|
||||||
pkgs.fetchzip { inherit (spec) url sha256; };
|
pkgs.fetchzip { inherit (spec) url sha256; };
|
||||||
|
|
Loading…
Reference in New Issue