From 0f17147d52a30cdd4e7190c39ed2f107fd721b0d Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Tue, 16 Jul 2024 04:00:50 -0400 Subject: [PATCH] modules: fix unused src and version attrs in buildPlug (#340) * modules: fix unused src and version attrs in buildPlug * docs: add entry for buildPlug fix --- docs/release-notes/rl-0.7.md | 2 ++ modules/default.nix | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/release-notes/rl-0.7.md b/docs/release-notes/rl-0.7.md index a124432..d5f3853 100644 --- a/docs/release-notes/rl-0.7.md +++ b/docs/release-notes/rl-0.7.md @@ -25,6 +25,8 @@ 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 6ab6790..ff71677 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -36,14 +36,10 @@ inputs: { buildPlug = {pname, ...} @ attrs: let src = getAttr ("plugin-" + pname) inputs; in - pkgs.runCommand pname ({ - inherit src; - version = src.shortRev or src.shortDirtyRev or "dirty"; - } - // attrs) + pkgs.runCommand "${pname}-${src.shortRev or src.shortDirtyRev or "dirty"}" attrs '' mkdir -p $out - cp -r . $out + cp -r ${src}/. $out ''; noBuildPlug = {pname, ...} @ attrs: let