1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

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.
This commit is contained in:
Timon Schelling 2025-05-15 18:32:14 +00:00 committed by GitHub
parent ec8205c3d7
commit a99bddfe53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = ''