-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Add cmakeFlags for auto-type and yubikey #27321
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
Conversation
@sib-null, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Drakonis, @Mic92 and @s1lvester to be potential reviewers. |
cmakeFlags = [ | ||
"-DWITH_GUI_TESTS=ON" | ||
"-DWITH_XC_AUTOTYPE=ON" | ||
"-DWITH_XC_YUBIKEY=ON" |
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.
This requires more dependencies as described here: https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC#build-dependencies
@@ -1,5 +1,5 @@ | |||
{ stdenv, fetchFromGitHub, fetchpatch, | |||
cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales | |||
cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales, libyubikey, libxi, libxtst, qtx11extras |
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.
They also need to be passed to buildInputs
. libxi
is called libXi
in nixpkgs.
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.
Hi @Mic92, thanks for your patience with me. Finally got the LInux build building, but looks like there's some problems with the Mac build, any ideas?
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.
the os x failure was unrelated, keepassx-community is not targeted at this platform.
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.
According to keepassxc's wiki, they do have build instructions for mac, though I'm not sure how to add platform specific flags.
Regardless, after I added the release build flag and pushed again, the macOS X build passed.
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.
It is still unrelated, keepassx is not build on os x at the moment:
see:
platforms = with stdenv.lib.platforms; linux;
@@ -20,7 +20,6 @@ stdenv.mkDerivation rec { | |||
"-DWITH_GUI_TESTS=ON" | |||
"-DWITH_XC_AUTOTYPE=ON" | |||
"-DWITH_XC_YUBIKEY=ON" | |||
"-DCMAKE_BUILD_TYPE=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.
This flag is already added by default.
This is my first pull request, and I'm not a C/C++ developer at all, so I may need some guidance.
Motivation for this change
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/
)