# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0

{ depot, ... }:
depot.third_party.buildGo.external {
  path = "github.com/prometheus/common";
  src = depot.third_party.nixpkgs.fetchFromGitHub {
    owner = "prometheus";
    repo = "common";
    rev = "317b7b125e8fddda956d0c9574e5f03f438ed5bc";
    hash = "sha256:0idhigx8qfszf5n71pvsdycfh5xqwzhdsbhxfyyknbyv2954vya6";
  };
  deps = with depot.third_party; [
    gopkgs."github.com".golang.protobuf.proto
    gopkgs."github.com".golang.protobuf.ptypes
    gopkgs."github.com".matttproud.golang_protobuf_extensions.pbutil
    gopkgs."github.com".prometheus.client_model.go
  ];
}