anchor.diff:      dontAddStaticConfigureFlags = true;
       configureFlags = [
         "shared" # "shared" builds both shared and static libraries
  -      "--libdir=lib"
  +      "--libdir=${placeholder "lib"}/lib"
         "--openssldir=etc/ssl"
       ] ++ lib.optionals withCryptodev [
         "-DHAVE_CRYPTODEV"
  
positive.code:                   '!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
      '';
  
      outputs = [ "bin" "dev" "out" "man" ] ++ lib.optional withDocs "doc";
      setOutputFlags = false;
      separateDebugInfo =
        !stdenv.hostPlatform.isDarwin &&
  
negative.code:       "MANSUFFIX=ssl"
      ];
  
      buildFlags = lib.optionals static [
        # Even though engines are disabled in static builds, we have to
        # override ENGINESDIR so the bin output doesn't end up with an
        # reference to the lib output.
        "ENGINESDIR=/"
      ];
  
      enableParallelBuilding = true;
  
      preInstall = lib.optionalString static ''
        # Build system wants to be able to create the engines directory
        # even though nothing will get installed to it.
        installFlagsArray+=(ENGINESDIR="$NIX_BUILD_TOP/engines")
      '';
  
      postInstall =
      lib.optionalString (!static) ''
  