anchor.diff:      qrencode
       qtbase
       qtsvg
  -    qtx11extras
       readline
       zlib
     ]
  +  ++ optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication
  +  ++ optional stdenv.isDarwin qtmacextras
     ++ optional stdenv.isLinux libusb1
  -  ++ optional stdenv.isDarwin qtmacextras
  -  ++ optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication;
  +  ++ optional withKeePassX11 qtx11extras;
   
     passthru.tests = nixosTests.keepassxc;
   
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "keepassxc";
    version = "2.7.1";
  
    src = fetchFromGitHub {
      owner = "keepassxreboot";
      repo = "keepassxc";
      rev = version;
      sha256 = "sha256-BOtehDzlWhhfXj8TOFvFN4f86Hl2EC3rO4qUIl9fqq4=";
    };
  
    NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [
  
negative.code: , zlib
  
  , withKeePassBrowser ? true
  , withKeePassFDOSecrets ? true
  , withKeePassKeeShare ? true
  , withKeePassNetworking ? true
  , withKeePassSSHAgent ? true
  , withKeePassTouchID ? true
  , withKeePassX11 ? true
  , withKeePassYubiKey ? true
  
  , nixosTests
  }:
  