fix: noBuildPlug naming

This commit is contained in:
Gerg-L 2025-05-17 10:48:27 -04:00
commit 23e50a8eb7
No known key found for this signature in database

View file

@ -7,21 +7,18 @@
}: let
inherit (pkgs) vimPlugins;
inherit (lib.trivial) flip;
inherit (builtins) path filter isString;
inherit (builtins) filter isString;
getPin = name: ((pkgs.callPackages ../../../npins/sources.nix {}) // config.vim.pluginOverrides).${name};
noBuildPlug = pname: let
pin = getPin pname;
version = pin.revision or "dirty";
in {
# vim.lazy.plugins relies on pname, so we only set that here
# version isn't needed for anything, but inherit it anyway for correctness
version = builtins.substring 0 8 pin.revision;
in
pin.outPath.overrideAttrs {
inherit pname version;
outPath = path {
name = "${pname}-0-unstable-${version}";
path = pin.outPath;
};
name = "${pname}-${version}";
passthru.vimPlugin = false;
};