anchor.diff:        if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then
             rm "$out/lib/"*.a
         fi
  +
  +      # 'etc' is a separate output on static builds only.
  +      etc=$out
       '') + lib.optionalString (!stdenv.hostPlatform.isWindows)
         # Fix bin/c_rehash's perl interpreter line
         #
  
positive.code:       substituteInPlace crypto/async/arch/async_posix.h \
          --replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \
                    '!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
      '';
  
      outputs = [ "bin" "dev" "out" "man" ] ++ lib.optional withDocs "doc";
      setOutputFlags = false;
      separateDebugInfo =
        !stdenv.hostPlatform.isDarwin &&
  
negative.code:       mv $out/include $dev/
  
        # remove dependency on Perl at runtime
        rm -r $etc/etc/ssl/misc
  
        rmdir $etc/etc/ssl/{certs,private}
      '';
  
      postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
        # Check to make sure the main output and the static runtime dependencies
        # don't depend on perl
        if grep -r '${buildPackages.perl}' $out $etc; then
          echo "Found an erroneous dependency on perl ^^^" >&2
          exit 1
        fi
  