anchor.diff:        integration/suites \
         pkg/true_git/*test.go \
         test/e2e
  +  '' + lib.optionalString (CGO_ENABLED == 0) ''
  +    # A workaround for osusergo.
  +    export USER=nixbld
     '';
   
     postInstall = ''
  
positive.code:   passthru.tests.version = testers.testVersion {
      package = werf;
      command = "werf version";
      version = "v${version}";
    };
  
    meta = with lib; {
  
negative.code: , fetchFromGitHub
  , installShellFiles
  , btrfs-progs
  , testers
  , werf
  }:
  
  buildGoModule rec {
    pname = "werf";
    version = "1.2.173";
  
    src = fetchFromGitHub {
      owner = "werf";
      repo = "werf";
      rev = "v${version}";
      hash = "sha256-jbV2pQSFq/E++eOyQwB0ssG2R9mm3sprlm5mFfHJsBA=";
    };
  
    vendorHash = "sha256-NHRPl38/R7yS8Hht118mBc+OBPwfYiHOaGIwryNK8Mo=";
  
    proxyVendor = true;
  
    subPackages = [ "cmd/werf" ];
  
    nativeBuildInputs = [ installShellFiles ];
  
    buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs ]
      ++ lib.optionals stdenv.hostPlatform.isGnu [ stdenv.cc.libc.static ];
  
    CGO_ENABLED = if stdenv.isLinux then 1 else 0;
  
  