New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsp-plugins: init at 1.1.4 #47694
lsp-plugins: init at 1.1.4 #47694
Conversation
substituteInPlace ./include/container/vst/main.h --replace "/usr/lib" "$out/lib" | ||
''; | ||
|
||
buildPhase = "make all && make release"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use buildFlags
instead of overriding buildPhase
''; | ||
|
||
buildPhase = "make all && make release"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the package have tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case please set doCheck = true;
to run the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added that, but the build output doesn't indicate it's running any tests afaik.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, when you set doCheck = true;
it will run make check
. If that's not the name of the target, you can change that by setting checkTarget = "all-tests";
or whatever the relevant make target is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have it building tests now, but it looks like these tests are meant to be ran manually.
Shall I remove the tests all-together, or run them somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can override checkPhase
if there isn't a way to invoke it via make
. From a cursory glance at the link you mentioned, based on this:
If we don's specify any unit test name in argument, then all available unit tests will be launched.
You should be able to do something like this to run the unit tests:
checkPhase = ''
runHook preCheck
.build/lsp-plugins-test utest
runHook postCheck
'';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, it's fixed now!
76358b1
to
fecb574
Compare
@peterhoeg Thanks for your feedback. Could you take a look at #47382 as well? |
fecb574
to
15b513d
Compare
15b513d
to
f14c0b4
Compare
Thank your for you contribution and being open to all the feedback! |
Thanks for all the feedback! :) |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)