anchor.diff:    '';
   
     meta = with lib; {
  -    homepage = "https://github.com/werf/werf";
       description = "GitOps delivery tool";
  +    longDescription = ''
  +      The CLI tool gluing Git, Docker, Helm & Kubernetes with any CI system to
  +      implement CI/CD and Giterminism.
  +    '';
  +    homepage = "https://werf.io";
  +    changelog = "https://github.com/werf/werf/releases/tag/${src.rev}";
       license = licenses.asl20;
       maintainers = with maintainers; [ azahi ];
     };
  
positive.code: , buildGoModule
  , fetchFromGitHub
  , installShellFiles
  , pkg-config
  , gpgme
  , glibc
  , lvm2
  , btrfs-progs
  }:
  
  buildGoModule rec {
    pname = "werf";
    version = "1.2.107";
  
    src = fetchFromGitHub {
      owner = "werf";
      repo = "werf";
      rev = "v${version}";
      sha256 = "sha256-a66BN8thTEKrXCOXpYIlbQnlA0VYEomQrc/m87qn6j4=";
    };
    vendorSha256 = "sha256-NwrkjeDicp4fmeviTCSs9lSg33Cgpv8tBdm84RJz/gQ=";
    proxyVendor = true;
  
    nativeBuildInputs = [ installShellFiles pkg-config ];
    buildInputs = [ gpgme ]
      ++ lib.optionals stdenv.isLinux [ glibc.static lvm2 btrfs-progs ];
  
    # Flags are derived from
    # https://github.com/werf/werf/blob/main/scripts/build_release_v3.sh
    ldflags = [ "-s" "-w" "-X github.com/werf/werf/pkg/werf.Version=v${version}" ]
      ++ lib.optionals stdenv.isLinux [
      "-linkmode external"
      "-extldflags=-static"
    ];
    tags = [ "dfrunmount" "dfssh" "containers_image_openpgp" ]
      ++ lib.optionals stdenv.isLinux [
      "exclude_graphdriver_devicemapper"
      "netgo"
      "no_devmapper"
  
negative.code:     "static_build"
    ];
  
    # There are no tests for cmd/werf.
    doCheck = false;
  
    postInstall = ''
      installShellCompletion --cmd werf \
  