anchor.diff:  
     subPackages = [ "cmd/cosign" ];
   
  +  preBuild = ''
  +    buildFlagsArray+=(${lib.optionalString pivKeySupport "-tags=pivkey"})
  +  '';
     ldflags = [ "-s" "-w" "-X github.com/sigstore/cosign/cmd/cosign/cli.gitVersion=v${version}"];
   
     meta = with lib; {
  
positive.code: { stdenv, lib, buildGoModule, fetchFromGitHub, pcsclite, pkg-config, PCSC }:
  
  buildGoModule rec {
    pname = "cosign";
  
negative.code:   };
  
    buildInputs =
      lib.optional (stdenv.isLinux && pivKeySupport) (lib.getDev pcsclite)
      ++ lib.optionals (stdenv.isDarwin && pivKeySupport) [ PCSC ];
  
    nativeBuildInputs = [ pkg-config ];
  
  