anchor.diff:      "static_build"
     ];
   
  -  # There are no tests for cmd/werf.
  -  doCheck = false;
  +  preCheck = ''
  +    # Test all targets.
  +    unset subPackages
  +
  +    # Remove tests that require external services.
  +    rm -rf \
  +      integration/suites \
  +      pkg/true_git/*test.go \
  +      test/e2e
  +  '';
   
     postInstall = ''
       installShellCompletion --cmd werf \
  
positive.code: 
    nativeBuildInputs = [ installShellFiles ];
    buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs glibc.static ];
  
    ldflags = [
      "-s"
  
negative.code: 
  buildGoModule rec {
    pname = "werf";
    version = "1.2.168";
  
    src = fetchFromGitHub {
      owner = "werf";
      repo = "werf";
      rev = "v${version}";
      hash = "sha256-/Shmnnpme1ffN7GMTryb4ddPlcAsruyWhFdjr1PJ3HM=";
    };
  
    vendorHash = "sha256-E5yDk48O7zze8QTeLQ999QmB8XLkpKNZ8JQ2wVRMGCU=";
  
    proxyVendor = true;
  
  