From 208c3a4da8f31387927ab9f202f50c3942e08d12 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 12 Mar 2020 05:16:28 -0400 Subject: [PATCH] prefer pkgs.fetchTarball and pkgs.fetchurl --- nix/sources.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/sources.nix b/nix/sources.nix index 8a725cb..0ad45ef 100644 --- a/nix/sources.nix +++ b/nix/sources.nix @@ -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; };