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
This commit is contained in:
Frothy 2024-07-16 04:00:50 -04:00 committed by GitHub
commit 0f17147d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

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