nixpkgs-suyu/pkgs/applications/misc/keepassx/community.nix

41 lines
1.4 KiB
Nix
Raw Normal View History

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