From 6c1c885da26bf74d045ed8c59aba40ea97637d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 14:05:37 +0200 Subject: [PATCH] prefer-remote-fetch: don't overwrite fetcher's which set preferLocalBuild explicitly --- pkgs/build-support/prefer-remote-fetch/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/build-support/prefer-remote-fetch/default.nix b/pkgs/build-support/prefer-remote-fetch/default.nix index 2e55e3707421..a1f2d0c56cff 100644 --- a/pkgs/build-support/prefer-remote-fetch/default.nix +++ b/pkgs/build-support/prefer-remote-fetch/default.nix @@ -11,9 +11,9 @@ # $ echo 'self: super: super.prefer-remote-fetch self super' > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix # self: super: { - fetchurl = args: super.fetchurl (args // { preferLocalBuild = false; }); - fetchgit = args: super.fetchgit (args // { preferLocalBuild = false; }); - fetchhg = args: super.fetchhg (args // { preferLocalBuild = false; }); - fetchsvn = args: super.fetchsvn (args // { preferLocalBuild = false; }); - fetchipfs = args: super.fetchipfs (args // { preferLocalBuild = false; }); + fetchurl = args: super.fetchurl ({ preferLocalBuild = false; } // args); + fetchgit = args: super.fetchgit ({ preferLocalBuild = false; } // args); + fetchhg = args: super.fetchhg ({ preferLocalBuild = false; } // args); + fetchsvn = args: super.fetchsvn ({ preferLocalBuild = false; } // args); + fetchipfs = args: super.fetchipfs ({ preferLocalBuild = false; } // args); }