anchor.diff:      "--with-threads"
     ] ++ optionals (sqlite != null && isPy3k) [
       "--enable-loadable-sqlite-extensions"
  -  ] ++ optionals (openssl != null) [
  -    "--with-openssl=${openssl.dev}"
  +  ] ++ optionals (openssl' != null) [
  +    "--with-openssl=${openssl'.dev}"
     ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
       "ac_cv_buggy_getaddrinfo=no"
       # Assume little-endian IEEE 754 floating point when cross compiling
  
positive.code:   ];
  
    buildInputs = filter (p: p != null) ([
      zlib bzip2 expat xz libffi gdbm sqlite readline ncurses openssl ]
      ++ optionals x11Support [ tcl tk libX11 xorgproto ]
      ++ optionals (bluezSupport && stdenv.isLinux) [ bluez ]
      ++ optionals stdenv.isDarwin [ configd ])
  
negative.code:   # Enforce that we don't have references to the OpenSSL -dev package, which we
    # explicitly specify in our configure flags above.
    disallowedReferences =
      lib.optionals (openssl' != null && !static) [ openssl'.dev ]
      ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
      # Ensure we don't have references to build-time packages.
      # These typically end up in shebangs.
  