anchor.diff:      qtbase
       qtsvg
       qtx11extras
  +    readline
       yubikey-personalization
       zlib
     ]
  -  ++ lib.optional withKeePassKeeShareSecure quazip
  -  ++ lib.optional stdenv.isDarwin qtmacextras
  -  ++ lib.optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication;
  +  ++ optional withKeePassKeeShareSecure quazip
  +  ++ optional stdenv.isDarwin qtmacextras
  +  ++ optional (stdenv.isDarwin && withKeePassTouchID)
  +    darwin.apple_sdk.frameworks.LocalAuthentication;
   
     preFixup = optionalString stdenv.isDarwin ''
       # Make it work without Qt in PATH.
  
positive.code:   passthru.tests = nixosTests.keepassxc;
  
    meta = {
      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, CLI, and browser integration with the KeePassXC Browser Extension (https://github.com/keepassxreboot/keepassxc-browser).";
      homepage = "https://keepassxc.org/";
      license = licenses.gpl2Plus;
      maintainers = with maintainers; [ jonafato turion ];
  
negative.code:     sha256 = "02ajfkw818cmalvkl0kqvza85rgdgs59kw2v7b3c4v8kv00c41j3";
    };
  
    NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [
      "-Wno-old-style-cast"
      "-Wno-error"
      "-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
    ];
  
    NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
  
    patches = [
      ./darwin.patch
  