anchor.diff:  , fetchFromGitHub
   , makeWrapper
   , git
  +, installShellFiles
  +, testers
  +, faas-cli
   }:
   let
     faasPlatform = platform:
  
positive.code:     sha256 = "sha256-iUS8bhTZc7oy7qy0ydmbVW3BNa/lZ2Q+kYefBKrNRyc=";
    };
  
    nativeBuildInputs = [ makeWrapper ];
  
    CGO_ENABLED = 0;
  
    vendorSha256 = null;
  
    subPackages = [ "." ];
  
  
negative.code:     "-X github.com/openfaas/faas-cli/commands.Platform=${faasPlatform stdenv.targetPlatform}"
    ];
  
    nativeBuildInputs = [ makeWrapper installShellFiles ];
  
    postInstall = ''
      wrapProgram "$out/bin/faas-cli" \
        --prefix PATH : ${lib.makeBinPath [ git ]}
  
      installShellCompletion --cmd metal \
        --bash <($out/bin/faas-cli completion --shell bash) \
        --zsh <($out/bin/faas-cli completion --shell zsh)
    '';
  
    passthru.tests.version = testers.testVersion {
      command = "${faas-cli}/bin/faas-cli version --short-version --warn-update=false";
      package = faas-cli;
    };
  
    meta = with lib; {
      description = "Official CLI for OpenFaaS ";
      homepage = "https://github.com/openfaas/faas-cli";
      license = licenses.mit;
      maintainers = with maintainers; [ welteki techknowlogick ];
    };
  