Merge pull request #59511 from jonafato/keepassxc-2.4.1
keepassxc: 2.4.0 -> 2.4.1
This commit is contained in:
commit
c36b3dbfe0
@ -1,26 +1,29 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, makeWrapper, qttools
|
{ stdenv, fetchFromGitHub, cmake, makeWrapper, qttools
|
||||||
|
|
||||||
, curl
|
, curl
|
||||||
|
, glibcLocales
|
||||||
|
, libXi
|
||||||
|
, libXtst
|
||||||
, libargon2
|
, libargon2
|
||||||
, libgcrypt
|
, libgcrypt
|
||||||
, libsodium
|
|
||||||
, zlib
|
|
||||||
, libmicrohttpd
|
|
||||||
, libXtst
|
|
||||||
, qtbase
|
|
||||||
, libgpgerror
|
, libgpgerror
|
||||||
, glibcLocales
|
, libmicrohttpd
|
||||||
|
, libsodium
|
||||||
, libyubikey
|
, libyubikey
|
||||||
, yubikey-personalization
|
, pkg-config
|
||||||
, libXi
|
, qrencode
|
||||||
, qtx11extras
|
, qtbase
|
||||||
, qtmacextras
|
, qtmacextras
|
||||||
, qtsvg
|
, qtsvg
|
||||||
, qrencode
|
, qtx11extras
|
||||||
|
, quazip
|
||||||
|
, yubikey-personalization
|
||||||
|
, zlib
|
||||||
|
|
||||||
, withKeePassBrowser ? true
|
, withKeePassBrowser ? true
|
||||||
|
, withKeePassKeeShare ? true
|
||||||
|
, withKeePassKeeShareSecure ? true
|
||||||
, withKeePassSSHAgent ? true
|
, withKeePassSSHAgent ? true
|
||||||
, withKeePassHTTP ? false
|
|
||||||
, withKeePassNetworking ? false
|
, withKeePassNetworking ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -28,13 +31,13 @@ with stdenv.lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "keepassxc-${version}";
|
name = "keepassxc-${version}";
|
||||||
version = "2.4.0";
|
version = "2.4.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "keepassxreboot";
|
owner = "keepassxreboot";
|
||||||
repo = "keepassxc";
|
repo = "keepassxc";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "1k8s56003gym2dv6c54gxwzs20i7lf6w5g5qnr449jfmf6wvbivr";
|
sha256 = "1cbfsfdvb4qw6yb0zl6mymdbphnb7lxbfrc5a8cjmn9w8b09kv6m";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang [
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang [
|
||||||
@ -52,17 +55,19 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./darwin.patch
|
./darwin.patch
|
||||||
|
./quazip5.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DKEEPASSXC_BUILD_TYPE=Release"
|
"-DKEEPASSXC_BUILD_TYPE=Release"
|
||||||
"-DWITH_GUI_TESTS=ON"
|
"-DWITH_GUI_TESTS=ON"
|
||||||
"-DWITH_XC_AUTOTYPE=ON"
|
"-DWITH_XC_AUTOTYPE=ON"
|
||||||
|
"-DWITH_XC_UPDATECHECK=OFF"
|
||||||
"-DWITH_XC_YUBIKEY=ON"
|
"-DWITH_XC_YUBIKEY=ON"
|
||||||
"-DWITH_XC_KEESHARE=ON"
|
|
||||||
]
|
]
|
||||||
++ (optional withKeePassBrowser "-DWITH_XC_BROWSER=ON")
|
++ (optional withKeePassBrowser "-DWITH_XC_BROWSER=ON")
|
||||||
++ (optional withKeePassHTTP "-DWITH_XC_HTTP=ON")
|
++ (optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON")
|
||||||
|
++ (optional withKeePassKeeShareSecure "-DWITH_XC_KEESHARE_SECURE=ON")
|
||||||
++ (optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON")
|
++ (optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON")
|
||||||
++ (optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON");
|
++ (optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON");
|
||||||
|
|
||||||
@ -87,13 +92,16 @@ stdenv.mkDerivation rec {
|
|||||||
libmicrohttpd
|
libmicrohttpd
|
||||||
libsodium
|
libsodium
|
||||||
libyubikey
|
libyubikey
|
||||||
|
pkg-config
|
||||||
|
qrencode
|
||||||
qtbase
|
qtbase
|
||||||
qtx11extras
|
|
||||||
qtsvg
|
qtsvg
|
||||||
|
qtx11extras
|
||||||
yubikey-personalization
|
yubikey-personalization
|
||||||
zlib
|
zlib
|
||||||
qrencode
|
]
|
||||||
] ++ stdenv.lib.optional stdenv.isDarwin qtmacextras;
|
++ stdenv.lib.optional withKeePassKeeShareSecure quazip
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin qtmacextras;
|
||||||
|
|
||||||
postInstall = optionalString stdenv.isDarwin ''
|
postInstall = optionalString stdenv.isDarwin ''
|
||||||
# Make it work without Qt in PATH.
|
# Make it work without Qt in PATH.
|
||||||
@ -103,7 +111,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Password manager to store your passwords safely and auto-type them into your everyday websites and applications";
|
description = "Password manager to store your passwords safely and auto-type them into your everyday websites and applications";
|
||||||
longDescription = "A community fork of KeePassX, which is itself a port of KeePass Password Safe. The goal is to extend and improve KeePassX with new features and bugfixes to provide a feature-rich, fully cross-platform and modern open-source password manager. Accessible via native cross-platform GUI and via CLI. Includes optional http-interface to allow browser-integration with plugins like PassIFox (https://github.com/pfn/passifox).";
|
longDescription = "A community fork of KeePassX, which is itself a port of KeePass Password Safe. The goal is to extend and improve KeePassX with new features and bugfixes to provide a feature-rich, fully cross-platform and modern open-source password manager. Accessible via native cross-platform GUI, CLI, and browser integration with the KeePassXC Browser Extension (https://github.com/keepassxreboot/keepassxc-browser).";
|
||||||
homepage = https://keepassxc.org/;
|
homepage = https://keepassxc.org/;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ s1lvester jonafato ];
|
maintainers = with maintainers; [ s1lvester jonafato ];
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp
|
|
||||||
index 6fd65c1a..e99275b0 100644
|
|
||||||
--- a/src/gui/entry/EditEntryWidget.cpp
|
|
||||||
+++ b/src/gui/entry/EditEntryWidget.cpp
|
|
||||||
@@ -29,6 +29,7 @@
|
|
||||||
#include <QMenu>
|
|
||||||
#include <QSortFilterProxyModel>
|
|
||||||
#include <QTemporaryFile>
|
|
||||||
+#include <QButtonGroup>
|
|
||||||
#include <QMimeData>
|
|
||||||
#include <QEvent>
|
|
||||||
#include <QColorDialog>
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
27
pkgs/applications/misc/keepassx/quazip5.patch
Normal file
27
pkgs/applications/misc/keepassx/quazip5.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff --git a/cmake/FindQuaZip.cmake b/cmake/FindQuaZip.cmake
|
||||||
|
index 8d309181..92aa892c 100644
|
||||||
|
--- a/cmake/FindQuaZip.cmake
|
||||||
|
+++ b/cmake/FindQuaZip.cmake
|
||||||
|
@@ -9,7 +9,6 @@ IF(QUAZIP_INCLUDE_DIRS AND QUAZIP_LIBRARIES)
|
||||||
|
SET(QUAZIP_FOUND TRUE)
|
||||||
|
ELSE(QUAZIP_INCLUDE_DIRS AND QUAZIP_LIBRARIES)
|
||||||
|
IF(Qt5Core_FOUND)
|
||||||
|
- set(QUAZIP_LIB_VERSION_SUFFIX 5)
|
||||||
|
ENDIF()
|
||||||
|
IF(WIN32)
|
||||||
|
FIND_PATH(QUAZIP_LIBRARY_DIR
|
||||||
|
diff --git a/src/keeshare/ShareObserver.cpp b/src/keeshare/ShareObserver.cpp
|
||||||
|
index 33f5ed1f..5fcd9202 100644
|
||||||
|
--- a/src/keeshare/ShareObserver.cpp
|
||||||
|
+++ b/src/keeshare/ShareObserver.cpp
|
||||||
|
@@ -46,8 +46,8 @@
|
||||||
|
#include <QStringBuilder>
|
||||||
|
|
||||||
|
#if defined(WITH_XC_KEESHARE_SECURE)
|
||||||
|
-#include <quazip5/quazip.h>
|
||||||
|
-#include <quazip5/quazipfile.h>
|
||||||
|
+#include <quazip/quazip.h>
|
||||||
|
+#include <quazip/quazipfile.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace
|
Loading…
x
Reference in New Issue
Block a user