diff --git a/docs/release-notes/rl-0.7.md b/docs/release-notes/rl-0.7.md index 7c64a6a..612cb5e 100644 --- a/docs/release-notes/rl-0.7.md +++ b/docs/release-notes/rl-0.7.md @@ -25,8 +25,6 @@ Release notes for release 0.7 [vim.ui.smartcolumn.setupOpts.custom_colorcolumn](#opt-vim.ui.smartcolumn.setupOpts.custom_colorcolumn) using the wrong type `int` instead of the expected type `string`. -- Fix unused src and version attributes in `buildPlug`. - [horriblename](https://github.com/horriblename): - Fix broken treesitter-context keybinds in visual mode diff --git a/modules/default.nix b/modules/default.nix index ff71677..c13fa5d 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -36,11 +36,19 @@ inputs: { buildPlug = {pname, ...} @ attrs: let src = getAttr ("plugin-" + pname) inputs; in - pkgs.runCommand "${pname}-${src.shortRev or src.shortDirtyRev or "dirty"}" attrs - '' - mkdir -p $out - cp -r ${src}/. $out - ''; + pkgs.stdenvNoCC.mkDerivation ({ + inherit src; + version = src.shortRev or src.shortDirtyRev or "dirty"; + installPhase = '' + runHook preInstall + + mkdir -p $out + cp -r . $out + + runHook postInstall + ''; + } + // attrs); noBuildPlug = {pname, ...} @ attrs: let input = getAttr ("plugin-" + pname) inputs;