Skip to content

Commit

Permalink
keepassx-community: 2.1.4 -> 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Jun 26, 2017
1 parent 8d8fdce commit 7df83ab
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions pkgs/applications/misc/keepassx/community.nix
@@ -1,31 +1,30 @@
{ stdenv, fetchFromGitHub, fetchpatch,
cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror
cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales
, withKeePassHTTP ? true
}:

with stdenv.lib;

stdenv.mkDerivation rec {
name = "keepassx-community-${version}";
version = "2.1.4";
version = "2.2.0";

src = fetchFromGitHub {
owner = "keepassxreboot";
repo = "keepassxc";
rev = "${version}";
sha256 = "1znnw2xpv58x0rbpmm4y662377mbmcilhf8mhhjsz8vhahms33a8";
sha256 = "0gg75mjy2p7lyh8nnivmyn7bjp1zyx26zm8s1fak7d2di2r0mnjc";
};

patches = [
(fetchpatch { # qt 4.9
url = "https://github.com/keepassxreboot/keepassxc/commit/2b6059dee3a95591d787e8b8c931cd68c059d43f.patch";
sha256 = "1v140z358rk75f7wsqawpai3x8v8qcqalnv9r0l1d4p1gxm1j766";
})
];
cmakeFlags = [ "-DWITH_GUI_TESTS=ON" ] ++ (optional withKeePassHTTP "-DWITH_XC_HTTP=ON");

This comment has been minimized.

Copy link
@billksun

billksun Jul 11, 2017

Contributor

The cmakeFlags needs to be updated to enable auto-type and support for yubikey (new feature):

cmake -DWITH_XC_AUTOTYPE=ON -DWITH_XC_HTTP=ON -DWITH_XC_YUBIKEY=ON \
    -DCMAKE_BUILD_TYPE=Release ..

From: https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC

This comment has been minimized.

Copy link
@Mic92

Mic92 Jul 11, 2017

Author Member

Can you make a pull request for that?

This comment has been minimized.

Copy link
@billksun

billksun Jul 12, 2017

Contributor

This is my first pull request and I'm not a C/C++ developer to boot, so any guidance will be helpful:
#27321


cmakeFlags = optional (withKeePassHTTP) [ "-DWITH_XC_HTTP=ON" ];
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 ];
buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror glibcLocales ];

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.";
Expand Down

0 comments on commit 7df83ab

Please sign in to comment.