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
plasma-nm: Fix cipher discovery by setting path to openvpn #24816
Conversation
This thing takes a long time to build.
(substituteAll { | ||
src = ./0002-openvpn-binary-path.patch; | ||
inherit openvpn; | ||
}) |
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 would prefer makeWrapper
to extend PATH if possible, so we do not have to maintain this patch in future updates.
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.
That does sound sensible; I only went with a patch following the existing example. I'll switch to a wrapper.
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.
Adding openvpn to propagatedBuildInputs
might also work
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'm not sure that makeWrapper
will do the job here. plasma-nm
provides several plugins (plasmoids) and there is no guarantee which executable will load each.
Adding it to propagatedBuildInputs
will not work.
I would prefer the path be patched into the source code as with other executables.
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 - which one is it going to be? The only approach that I know will reliably work is patching the source. If updating the patch becomes irritating over time, maybe we can find a way to do it with sed or something instead of a patch?
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'm merging it as is.
The irritation of updating the patches is a red herring; I've been maintaining these packages for years and I can count the number of patches I have updated on one hand.
Motivation for this change
As seen in #24808 , it's not possible to configure the cipher field without this patch. I also toggled enableParallelBuild because this package takes surprisingly long to compile.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)