anchor.diff:    '';
   
     buildFlags = "-tags=builtinassets";
  -  buildFlagsArray = let
  -    t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
  -  in [
  -    ''
  -      -ldflags=
  -         -X ${t}.Version=${version}
  -         -X ${t}.Revision=unknown
  -         -X ${t}.Branch=unknown
  -         -X ${t}.BuildUser=nix@nixpkgs
  -         -X ${t}.BuildDate=unknown
  -         -X ${t}.GoVersion=${lib.getVersion go}
  -    ''
  -  ];
  +  buildFlagsArray =
  +    let
  +      t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
  +    in
  +    [
  +      ''
  +        -ldflags=
  +           -X ${t}.Version=${version}
  +           -X ${t}.Revision=unknown
  +           -X ${t}.Branch=unknown
  +           -X ${t}.BuildUser=nix@nixpkgs
  +           -X ${t}.BuildDate=unknown
  +           -X ${t}.GoVersion=${lib.getVersion go}
  +      ''
  +    ];
   
     # only run this in the real build, not during the vendor build
     # this should probably be fixed in buildGoModule
  
positive.code:     installPhase = "mv build $out";
      distPhase = "true";
    };
  in buildGoModule rec {
    pname = "prometheus";
    inherit src version;
  
  
negative.code: { stdenv
  , lib
  , go
  , buildGoModule
  , fetchFromGitHub
  , mkYarnPackage
  , nixosTests
  , fetchpatch
  }:
  
  