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

37 lines
1.2 KiB
Nix
Raw Normal View History

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