From 1cb0b0434d83719d73946b4516475e5ca31a2f2d Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Fri, 10 May 2024 15:07:07 +0000 Subject: [PATCH] Fix prefetch-npm-deps override when functionArgs is not supported --- overlay.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlay.nix b/overlay.nix index 649aa28..06a5f46 100644 --- a/overlay.nix +++ b/overlay.nix @@ -45,6 +45,8 @@ let }); inherit (prev) lib; + + prefetch-npm-deps-args = lib.functionArgs prev.prefetch-npm-deps.override; in override_2_18 // { @@ -74,7 +76,7 @@ override_2_18 // # support both having and missing https://github.com/NixOS/nixpkgs/pull/304913 prefetch-npm-deps = - if (lib.functionArgs prev.prefetch-npm-deps.override) ? nix + if (prefetch-npm-deps-args ? nix) || (prefetch-npm-deps-args == {}) then prev.prefetch-npm-deps.override { nix = final.nixVersions.nix_2_18_upstream; }