anchor.diff:    passthru.tests.version = testers.testVersion {
       package = werf;
       command = "werf version";
  -    version = "v${version}";
  +    version = src.rev;
     };
   
     meta = with lib; {
  
positive.code: , fetchFromGitHub
  , installShellFiles
  , btrfs-progs
  , glibc
  , testers
  , werf
  }:
  
  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;
  
    subPackages = [ "cmd/werf" ];
  
    nativeBuildInputs = [ installShellFiles ];
    buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs glibc.static ];
  
    CGO_ENABLED = if stdenv.isLinux then 1 else 0;
  
  
negative.code:     "-w"
      "-X github.com/werf/werf/pkg/werf.Version=${src.rev}"
    ] ++ lib.optionals stdenv.isLinux [
      "-extldflags '-static'"
      "-linkmode external"
    ];
  
  