From a99bddfe53cb5ae488bfb0dc0170dae258b2c572 Mon Sep 17 00:00:00 2001 From: Timon Schelling Date: Thu, 15 May 2025 18:32:14 +0000 Subject: [PATCH] lapce: fix no argument hash for pluginFromRegistry (#7062) The `hash` argument was mistakenly removed during dead code cleanup in #6985. This argument is required by `fetchPluginTarballFromRegistry`, so `pluginFromRegistry` must pass it through. To avoid future removals by `deadnix`, `pluginFromRegistry` now explicitly takes and forwards the `hash` argument. --- modules/programs/lapce.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/programs/lapce.nix b/modules/programs/lapce.nix index 78d1ae1f5..72a9c6f00 100644 --- a/modules/programs/lapce.nix +++ b/modules/programs/lapce.nix @@ -173,11 +173,19 @@ let author, name, version, - }@args: + hash, + }: pkgs.stdenvNoCC.mkDerivation { pname = "lapce-plugin-${author}-${name}"; inherit version; - src = fetchPluginTarballFromRegistry args; + src = fetchPluginTarballFromRegistry { + inherit + author + name + version + hash + ; + }; nativeBuildInputs = [ pkgs.zstd ]; phases = [ "installPhase" ]; installPhase = ''