anchor.diff:      "static_build"
     ];
   
  -  subPackages = [ "cmd/werf" ];
  +  # There are no tests for cmd/werf.
  +  doCheck = false;
   
     postInstall = ''
       installShellCompletion --cmd werf \
  
positive.code:   '';
  
    meta = with lib; {
      homepage = "https://github.com/werf/werf";
      description = "GitOps delivery tool";
      license = licenses.asl20;
      maintainers = with maintainers; [ azahi ];
    };
  
negative.code: , buildGoModule
  , fetchFromGitHub
  , installShellFiles
  , btrfs-progs
  , glibc
  }:
  
  buildGoModule rec {
    pname = "werf";
    version = "1.2.114";
  
    src = fetchFromGitHub {
      owner = "werf";
      repo = "werf";
      rev = "v${version}";
      sha256 = "sha256-+QCKVXuROd7QB6P5tSSINWtdw5OvVnmE1+ttoBnCO1g=";
    };
  
    vendorSha256 = "sha256-VuburDiYqePFvS7/aTM+krkK2UhTHhfbvGOLY3I3DN8=";
  
    proxyVendor = true;
  
    subPackages = [ "cmd/werf" ];
  
    nativeBuildInputs = [ installShellFiles ];
    buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs glibc.static ];
  
    ldflags = [
      "-s"
      "-w"
      "-X github.com/werf/werf/pkg/werf.Version=${src.rev}"
    ] ++ lib.optionals stdenv.isLinux [
      "-extldflags=-static"
      "-linkmode external"
    ];
  
    tags = [
      "containers_image_openpgp"
      "dfrunmount"
      "dfssh"
    ] ++ lib.optionals stdenv.isLinux [
      "exclude_graphdriver_devicemapper"
      "netgo"
      "no_devmapper"
  