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:     "-DWITH_GUI_TESTS=ON"
      "-DWITH_XC_UPDATECHECK=OFF"
    ]
    ++ (optional (!withKeePassX11) "-DWITH_XC_X11=OFF")
    ++ (optional (withKeePassFDOSecrets && stdenv.isLinux) "-DWITH_XC_FDOSECRETS=ON")
    ++ (optional (withKeePassYubiKey && stdenv.isLinux) "-DWITH_XC_YUBIKEY=ON")
    ++ (optional withKeePassBrowser "-DWITH_XC_BROWSER=ON")
    ++ (optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON")
    ++ (optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON")
    ++ (optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON");
  
    doCheck = true;
  