Add cmakeFlags for auto-type and yubikey (#27321)

* Add cmakeFlags for auto-type and yubikey

* Add libyubikey dependency

* Add auto-type dependencies

* Add new dependencies to buildInputs

* Fix duplication and capitalization in dependencies

* Add yubikey-personalization to dependency and build

* Add release build flag

* Revert "Add release build flag"

This reverts commit afabd63db0ad68348909c67b488787501b7991bb.

authored by Bill Sun and committed by Jörg Thalheim b4387e7c cc8e2aec

+7 -3
+7 -3
pkgs/applications/misc/keepassx/community.nix
··· 1 { stdenv, fetchFromGitHub, fetchpatch, 2 - cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales 3 , withKeePassHTTP ? true 4 }: 5 ··· 16 sha256 = "0gg75mjy2p7lyh8nnivmyn7bjp1zyx26zm8s1fak7d2di2r0mnjc"; 17 }; 18 19 - cmakeFlags = [ "-DWITH_GUI_TESTS=ON" ] ++ (optional withKeePassHTTP "-DWITH_XC_HTTP=ON"); 20 21 doCheck = true; 22 checkPhase = '' ··· 24 make test ARGS+="-E testgui --output-on-failure" 25 ''; 26 27 - buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror glibcLocales ]; 28 29 meta = { 30 description = "Fork of the keepassX password-manager with additional http-interface to allow browser-integration an use with plugins such as PasslFox (https://github.com/pfn/passifox). See also keepassX2.";
··· 1 { stdenv, fetchFromGitHub, fetchpatch, 2 + cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales, libyubikey, yubikey-personalization, libXi, qtx11extras 3 , withKeePassHTTP ? true 4 }: 5 ··· 16 sha256 = "0gg75mjy2p7lyh8nnivmyn7bjp1zyx26zm8s1fak7d2di2r0mnjc"; 17 }; 18 19 + cmakeFlags = [ 20 + "-DWITH_GUI_TESTS=ON" 21 + "-DWITH_XC_AUTOTYPE=ON" 22 + "-DWITH_XC_YUBIKEY=ON" 23 + ] ++ (optional withKeePassHTTP "-DWITH_XC_HTTP=ON"); 24 25 doCheck = true; 26 checkPhase = '' ··· 28 make test ARGS+="-E testgui --output-on-failure" 29 ''; 30 31 + buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror glibcLocales libyubikey yubikey-personalization libXi qtx11extras ]; 32 33 meta = { 34 description = "Fork of the keepassX password-manager with additional http-interface to allow browser-integration an use with plugins such as PasslFox (https://github.com/pfn/passifox). See also keepassX2.";