anchor.diff: -{ lib, stdenv, fetchFromGitHub, }:
  +{ lib, stdenv, fetchFromGitHub, nasm, which
  +, enableStatic ? stdenv.hostPlatform.isStatic
  +, enableShared ? !enableStatic
  +}:
   
   stdenv.mkDerivation rec {
     pname = "crypto++";
  
positive.code:     sha256 = "1gwn8yh1mh41hkh6sgnhb9c3ygrdazd7645msl20i0zdvcp7f5w3";
    };
  
    postPatch = ''
      substituteInPlace GNUmakefile \
          --replace "AR = libtool" "AR = ar" \
  
negative.code:   '';
  
    makeFlags = [ "PREFIX=${placeholder "out"}" ];
    buildFlags =
         lib.optional enableStatic "static"
      ++ lib.optional enableShared "shared"
      ++ [ "libcryptopp.pc" ];
    enableParallelBuilding = true;
  
    doCheck = true;
  
    # built for checks but we don't install static lib into the nix store
    preInstall = lib.optionalString (!enableStatic) "rm libcryptopp.a";
  
    installTargets = [ "install-lib" ];
    installFlags = [ "LDCONF=true" ];
    postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
  