2017-06-25 09:36:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch,
|
2017-07-18 00:09:50 +01:00
|
|
|
cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales, libyubikey, yubikey-personalization, libXi, qtx11extras
|
2017-02-21 22:22:08 +00:00
|
|
|
, withKeePassHTTP ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2016-08-29 01:02:19 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-02 02:21:34 +00:00
|
|
|
name = "keepassx-community-${version}";
|
2017-10-22 16:46:33 +01:00
|
|
|
version = "2.2.2";
|
2016-08-29 01:02:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-10-18 04:43:11 +01:00
|
|
|
owner = "keepassxreboot";
|
2017-02-02 02:21:34 +00:00
|
|
|
repo = "keepassxc";
|
|
|
|
rev = "${version}";
|
2017-10-22 16:46:33 +01:00
|
|
|
sha256 = "01pqpa3vzk2q1vrj2lqayr7a3nzpnj176yhnqbrwlm3s9rga4wzn";
|
2016-08-29 01:02:19 +01:00
|
|
|
};
|
|
|
|
|
2017-07-18 00:09:50 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_GUI_TESTS=ON"
|
|
|
|
"-DWITH_XC_AUTOTYPE=ON"
|
|
|
|
"-DWITH_XC_YUBIKEY=ON"
|
|
|
|
] ++ (optional withKeePassHTTP "-DWITH_XC_HTTP=ON");
|
2017-06-25 09:36:06 +01:00
|
|
|
|
2017-06-26 07:22:05 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
make test ARGS+="-E testgui --output-on-failure"
|
|
|
|
'';
|
2017-02-21 22:22:08 +00:00
|
|
|
|
2017-07-18 00:09:50 +01:00
|
|
|
buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror glibcLocales libyubikey yubikey-personalization libXi qtx11extras ];
|
2016-08-29 01:02:19 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
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.";
|
2017-02-02 02:21:34 +00:00
|
|
|
homepage = https://github.com/keepassxreboot/keepassxc;
|
2016-08-29 01:02:19 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-10-18 04:43:11 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ s1lvester jonafato ];
|
2016-08-29 01:02:19 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|