Skip to content

Commit

Permalink
modules: fix unused src and version attrs in buildPlug (#340)
Browse files Browse the repository at this point in the history
* modules: fix unused src and version attrs in buildPlug

* docs: add entry for buildPlug fix
  • Loading branch information
FrothyMarrow authored Jul 16, 2024
1 parent a4d35b4 commit 0f17147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/release-notes/rl-0.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f17147

Please sign in to comment.