keepassxc: add readline support, minor refactor
This commit is contained in:
parent
f2e899e01a
commit
9c6daedb29
@ -23,6 +23,7 @@
|
|||||||
, qtsvg
|
, qtsvg
|
||||||
, qtx11extras
|
, qtx11extras
|
||||||
, quazip
|
, quazip
|
||||||
|
, readline
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
, yubikey-personalization
|
, yubikey-personalization
|
||||||
, zlib
|
, zlib
|
||||||
@ -51,13 +52,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "02ajfkw818cmalvkl0kqvza85rgdgs59kw2v7b3c4v8kv00c41j3";
|
sha256 = "02ajfkw818cmalvkl0kqvza85rgdgs59kw2v7b3c4v8kv00c41j3";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang [
|
NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [
|
||||||
"-Wno-old-style-cast"
|
"-Wno-old-style-cast"
|
||||||
"-Wno-error"
|
"-Wno-error"
|
||||||
"-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
|
"-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
|
NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./darwin.patch
|
./darwin.patch
|
||||||
@ -108,12 +109,14 @@ stdenv.mkDerivation rec {
|
|||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qtx11extras
|
qtx11extras
|
||||||
|
readline
|
||||||
yubikey-personalization
|
yubikey-personalization
|
||||||
zlib
|
zlib
|
||||||
]
|
]
|
||||||
++ lib.optional withKeePassKeeShareSecure quazip
|
++ optional withKeePassKeeShareSecure quazip
|
||||||
++ lib.optional stdenv.isDarwin qtmacextras
|
++ optional stdenv.isDarwin qtmacextras
|
||||||
++ lib.optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication;
|
++ optional (stdenv.isDarwin && withKeePassTouchID)
|
||||||
|
darwin.apple_sdk.frameworks.LocalAuthentication;
|
||||||
|
|
||||||
preFixup = optionalString stdenv.isDarwin ''
|
preFixup = optionalString stdenv.isDarwin ''
|
||||||
# Make it work without Qt in PATH.
|
# Make it work without Qt in PATH.
|
||||||
@ -123,8 +126,14 @@ stdenv.mkDerivation rec {
|
|||||||
passthru.tests = nixosTests.keepassxc;
|
passthru.tests = nixosTests.keepassxc;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Password manager to store your passwords safely and auto-type them into your everyday websites and applications";
|
description = "Offline password manager with many features.";
|
||||||
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).";
|
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, has browser integration
|
||||||
|
using the KeePassXC Browser Extension (https://github.com/keepassxreboot/keepassxc-browser)
|
||||||
|
'';
|
||||||
homepage = "https://keepassxc.org/";
|
homepage = "https://keepassxc.org/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ jonafato turion ];
|
maintainers = with maintainers; [ jonafato turion ];
|
||||||
|
Loading…
Reference in New Issue
Block a user