anchor.diff:    nativeBuildInputs = [ perl pkg-config ];
     buildInputs = [ libtool libxml2 openssl libuv nghttp2 jemalloc ]
       ++ lib.optional stdenv.isLinux libcap
  -    ++ lib.optional enableSeccomp libseccomp
       ++ lib.optional enableGSSAPI libkrb5
       ++ lib.optional enablePython (python3.withPackages (ps: with ps; [ ply ]));
   
  
positive.code: 
    configureFlags = [
      "--localstatedir=/var"
      "--with-libtool"
      (if enablePython then "--with-python" else "--without-python")
      "--without-atf"
      "--without-dlopen"
      "--without-docbook-xsl"
      "--without-idn"
      "--without-idnlib"
      "--without-lmdb"
      "--without-libjson"
      "--without-pkcs11"
      "--without-purify"
      "--with-randomdev=/dev/random"
      "--with-ecdsa"
      "--with-gost"
      "--without-eddsa"
      "--with-aes"
    ] ++ lib.optional stdenv.isLinux "--with-libcap=${libcap.dev}"
      ++ lib.optional enableSeccomp "--enable-seccomp"
      ++ lib.optional enableGSSAPI "--with-gssapi=${libkrb5.dev}/bin/krb5-config"
      ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)";
  
    postInstall = ''
  
negative.code: { config, stdenv, lib, fetchurl, fetchpatch
  , perl, pkg-config
  , libcap, libtool, libxml2, openssl, libuv, nghttp2, jemalloc
  , enablePython ? false, python3
  , enableGSSAPI ? true, libkrb5
  , buildPackages, nixosTests
  }:
  
  