3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/monitoring/prometheus/rabbitmq-exporter.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

27 lines
749 B
Nix

# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage {
pname = "rabbitmq_exporter";
version = "0.25.2";
goPackagePath = "github.com/kbudde/rabbitmq_exporter";
src = fetchFromGitHub {
owner = "kbudde";
repo = "rabbitmq_exporter";
rev = "8238c5d9ad509dab94e631cdecf3d75155fbdee4";
sha256 = "1zb21jms2wlmiw5vhk1wyhv0xrv5a9y08y9q6x92hv727kjqjr6w";
};
goDeps = ./rabbitmq-exporter_deps.nix;
meta = with lib; {
description = "Prometheus exporter for RabbitMQ";
homepage = "https://github.com/kbudde/rabbitmq_exporter";
license = licenses.mit;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
};
}