{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "prometheus-nats-exporter"; version = "0.12.0"; src = fetchFromGitHub { owner = "nats-io"; repo = pname; rev = "v${version}"; sha256 = "sha256-3LgxMbcq4vmFxFTrLrJECFqaD5xp9oJsFrqPXATkzqg="; }; vendorHash = "sha256-2QGz+7CGBrQPukDMRDapQ5MMMqRTPS6kqsa9J6UXEXY="; preCheck = '' # Fix `insecure algorithm SHA1-RSA` problem export GODEBUG=x509sha1=1; ''; meta = with lib; { description = "Exporter for NATS metrics"; homepage = "https://github.com/nats-io/prometheus-nats-exporter"; license = licenses.asl20; maintainers = with maintainers; [ bbigras ]; }; }