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
yubikey-manager-qt: build using Qt mkDerivation #67613
Conversation
I'm intrigued by where the python code is in this application. However I don't see those files in the output
So I think |
I think it gets packaged into the binary as a resource. Depending on how the app is started (out of the build directory or not) it gets loaded via the resource or directly from the file system: https://github.com/Yubico/yubikey-manager-qt/blob/master/ykman-gui/main.cpp#L58-L70 |
postPatch = '' | ||
substituteInPlace ykman-gui/deployment.pri --replace '/usr/bin' "$out/bin" | ||
substituteInPlace ykman-gui/deployment.pri \ | ||
--replace /usr/bin $out/bin |
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.
Why did you change this line? Did you ran some linter tool? But then, why didn't you also change a similar line for the substituteInPlace
call at line 54?
Usually, I am in favor of proper quoting, to be safe. But at least it should be consistent in the same file.
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.
LGTM, I build it locally and it worked for me.
Yes it does generate a |
I don't think the shebang is in any way relevant, since the file is never unpacked on disc for a shell to consume. It is directly called by the embedded interpreter. |
Ahh, I guess it's used as a module |
buildInputs = [ pythonPackages.python qtbase qtgraphicaleffects qtquickcontrols qtquickcontrols2 pyotherside ]; | ||
buildInputs = [ python3Packages.python qtbase qtgraphicaleffects qtquickcontrols qtquickcontrols2 pyotherside ]; | ||
|
||
nativeBuildInputs = [ python3Packages.wrapPython qmake ]; |
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.
wrapPython
isn't going to do anything to the files in this package.
You could however get it to apply its sed expression to the ykman-cli.py
file, and then I think you shouldn't need the PYTHONPATH
wrapper.
Thank you for your contributions.
|
I marked this as stale due to inactivity. → More info |
I marked this as stale due to inactivity. → More info |
Someone already did this. No longer needed. |
Motivation for this change
Further to #65399
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @avdv